PHP code example of patilvishalvs / generic_crud

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

    

patilvishalvs / generic_crud example snippets


//Add following line in AppServiceProvider.php
use Illuminate\Support\Facades\Schema;
...
public function boot()
{
    ...
    //Add following line in boot() function of AppServiceProvider.php
    Schema::defaultStringLength(191);
}

php artisan migrate
php artisan make:auth

php artisan db:seed --class="PatilVishalVS\GenericCRUD\seeds\DatabaseSeeder"
php artisan vendor:publish --tag=public
php artisan vendor:publish --tag=resources
php artisan serve