1. Go to this page and download the library: Download pierresilva/laravel-modules library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
html
"This is the Blog module index page."
array:2 [▼
"_token" => "..."
"module" => array:6 [▼
"name" => "Blog"
"slug" => "blog"
"version" => "1.0"
"description" => "This is the description for the Blog module."
"enabled" => true
"order" => 9001
]
]
php artisan module:make blog
php artisan module:make:controller blog PostsController
php artisan module:make:seeder blog PostsTableSeeder
php artisan module:make:request blog CreatePostRequest
php artisan module:enable blog
php artisan module:migrate
php artisan module:migrate:refresh
php artisan module:migrate:rollback
php artisan module:migrate:rollback blog
php artisan module:seed
php artisan module:seed blog
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.