PHP code example of backpack / newscrud

1. Go to this page and download the library: Download backpack/newscrud 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/ */

    

backpack / newscrud example snippets


php artisan migrate

Route::group(['prefix' => config('backpack.base.route_prefix', 'admin'), 'middleware' => ['web', 'auth'], 'namespace' => 'Admin'], function () {
    // Backpack\NewsCRUD
    Route::crud('article', 'ArticleCrudController');
    Route::crud('category', 'CategoryCrudController');
    Route::crud('tag', 'TagCrudController');
});

php artisan vendor:publish --provider="Backpack\NewsCRUD\NewsCRUDServiceProvider"

php artisan migrate
routes/backpack/newscrud.php