Updated Laravel to 8.3
Make Database Factory macroable
Php artisan command list
command php artisan list 1. make:controller (creates a new controller file) php artisan make:controller UserController 2. make:model (Create a new Eloquent model class) php artisan make:model Photo 3. make:migration (Create a new migration file) php artisan make:migration create_projects_table 4. make:seeder (Create a new database seeder class) php artisan make:seeder BooksTableSeeder […]
Add, Update, Delete and Read JSON Data/File in PHP
Read JSON File in PHP: <?php // load file $data = file_get_contents('results.json'); // decode json to associative array $json_arr = json_decode($data, true); foreach ($json_arr as $key => $value) { echo $json_arr[$key] . " - " . $json_arr[$value] . "<br/>"; } ?> Add to JSON File in PHP: <?php // read […]
Benefits of Choosing Laravel Framework for Your Next Project
“Love beautiful code? We do too.” Laravel framework has taken PhP to new heights. This framework is a newbie to the IT industry, which can be quite daunting, but at the same time it has been fortunate enough in attracting a lot of users. In the more technical terms: Laravel, […]