Author: Ishu Rani
-
Converting array to eloquent collection in laravel?
To convert an array to Eloquent model in laravel, you typically create a new instance of the model and set the attributes using the array values. Inshort you can fill method to store $userData array to user object
-
How to check laravel version?
php artisan about This command will give you details about your laravel, php, composer versions. Also cache and drivers status with your environment mode. php artisan –version This flag command can be used with other coomands like: php artisan make:model –version app( )->version( ); The app() method will give you your laravel version. composer show…