Posts

Default virtual hosts file in laragon - etc\apache2\sites-enabled\00-default.conf

contents of etc\apache2\sites-enabled\00-default.conf file: AllowOverride All Require all granted

Points

How are two objects compared in PHP? PHP provides you with the ‘==’ operator, which is used to compare two objects at a time. This is used to check if there is a common presence of attributes and values between the objects in comparison. The ‘===’ operator is also used to compare if both objects in consideration are referencing to the same class. $ob2= (object)['t'=>'m']; $ob1= (object)['t'=>'m']; echo ($ob1 == $ob2); Result: 1 ---------------------------------------------------

Add select columns after already adding select

Use: $query->addSelect([])

Storage link not working on laravel another system

delete previously create symlink and run: php artisan storage:link

Import db in mysql using command line

mysql> mysql -u root -p mysql> use your_db_name; mysql> source /parth/yourfile file.sql; (note - don't enclose path in double and single quotes)

Laravel Models

Create model php artisan make:model Flight