PHP code example of foothing / laravel-repository-controller

1. Go to this page and download the library: Download foothing/laravel-repository-controller 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/ */

    

foothing / laravel-repository-controller example snippets


	"providers" => [

		Foothing\RepositoryController\RepositoryControllerServiceProvider::class,

	],

	// ... your app routes

	RouteInstaller::install('api/v1/');

'resources' => array(

	// Resources must be in the form 'resourceName' => 'resourceImplementation'
	// The implementation should be a fully qualified namespace to the model.

	'user' => 'App\User',
	'foo'  => 'My\Namespace\Foo',
),

php artisan vendor:publish --provider="Foothing\RepositoryController\RepositoryControllerServiceProvider" --tag="config"