PHP code example of noman / easycrud

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

    

noman / easycrud example snippets


'providers' => [
    ...,
    Noman\Easycrud\CrudServiceProvider::class,
]

'aliases' => [
    ...,
    'Easycrud' => Noman\Easycrud\Easycrud::class,
]

            $data= [
                    'form'=>[
                        'name'=>'test',
                    ],
                    'fields'=> [
                            [
                                'name'=>'name',
                                'label'=>'Name',
                                'placeholder'=>'Enter Name',
                                'type'=>'text',
                                'classes'=>'form-control',
                                
                            ],
                            [
                                'name'=>'address',
                                'label'=>'Address',
                                'placeholder'=>'Enter Address',
                                'type'=>'text',
                                'classes'=>'form-control',
                            ],
                        ]
                    ];
        return view("test",compact('data'));
bash
php artisan vendor:publish --provider="Noman\Easycrud\CrudServiceProvider"
bash
php artisan migrate