PHP code example of arwp / mvc
1. Go to this page and download the library: Download arwp/mvc 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/ */
arwp / mvc example snippets
bash
$ php artisan vendor:publish --provider="Arwp\Mvc\MvcServiceProvider"
#publised file config/mvc.php
#publised file routes/mvc-route.php
#publised file Console/Commands/createMvc.php
#publised file Console/Commands/deleteMvc.php
public function boot()
{
...
Route::middleware(['web','auth','backend'])->namespace('App\Http\Controllers\Backend')->group(base_path('routes/mvc-route.php'));
...
}