Force https on laravel application

If you have purchased a SSl certificate for your website and then you website is still serving the assets from an HTTP protocol instead of https, and also the form and redirects are going to http instead of https, then here is the way to fix this from within laravel AppServiceProvide.

export data to pdf in laravel using domPDF package

this snippet will help you to get started with domPDF package for laravel to export your data in pdf format

Solution for removing password authentication on github

In 13 august 2021 , github removed password authentication so when you push to github you will face a problem here is the solution

set from email dynamically when sending mails in laravel

this snippet will teach you how to set different FROM EMAIL which exists in database to use as sender email when sending emails in laravel

Print a div content using Javascript

This snippet will allow you to print the content of specific div directly from your application

Laravel pagination problem when deleting last item

when deleting the last record on pagination page , this will make that page be fully empty with no records ... this snippet will allow you to redirect to the main route when deleting the last record on pagination and the page is empty

وحدات القياس الالكترونية

وحدات القياس الالكترونية مثل الامبير - الوات - الاوم .. الخ

تعريفات مهمه فى الكهرباء

تعريفات هامه فى كورس الالكترونيات

Eloquent normal sql select statement

In laravel and eloquent, some times you might need to run a normal SQL select statement. So here is an example to do so:

Increase memory size or execution time

In case you wanted to increase memory size or loading or execution time here is this small snippet