create model controller migration factory laravel in one command
# to make only Model Class
php artisan make:model Customer
# to make resource controller
php artisan make:controller CustomersController --resource
# make controller for already existing Model Class (binded to model)
php artisan make:controller CustomersController --model=Customer
# to make model, migration and controller and factory all in one command
php artisan make:model Modelname -crmf# to make only Model Class
php artisan make:model Customer
# to make resource controller
php artisan make:controller CustomersController --resource
# make controller for already existing Model Class (binded to model)
php artisan make:controller CustomersController --model=Customer
# to make model, migration and controller all in one command
php artisan make:model User -mcr
# here m for migration, c for controller, r for resource methods in controller
Also in PHP:
- composer require guzzlehttp/guzzle
- $tmpmembershipfee = MembershipFee::orderBy('created_at','DESC') ->first();
- add another field in existing migration laravel
- check if string contains specific string php
- Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, string given in
- cahe laravel
- phpunit/phpunit[9.3.3, ..., 9.5.x-dev] require ext-dom * -> it is missing from your system. Install or enable PHP's dom extension. - Root composer.json requires phpunit/phpunit ^9.3.3 -> satisfiable by phpunit/phpunit[9.3.3, ..., 9.5.x-dev].
- create new laravel project
- Connect to SQL in a php PDO and print the data in it
- eloquent remove updated_at
- clear cache laravel migrate
- blade Keep input values after failed validation
- check which device is used to open webpage php
- composer php version
- eliminate duplicate values from associative array phph
- clear laravel cash
- conole.log in php
- current date timestamp in php
- error uncaught even in try catch php
- disable login and register in laravel
- artisan run seeder
- basd64 decrtpy php
- date convert format in php
- domainn of page php