PHP code example of mohamadtsn / laravel-repository
1. Go to this page and download the library: Download mohamadtsn/laravel-repository 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/ */
mohamadtsn / laravel-repository example snippets
use Mohamadtsn\Repository\Traits\Repository; // use Repository trait
class Controller extends BaseController
{
use AuthorizesRequests, DispatchesJobs, ValidatesRequests, Repository// use trait in Controller class;
// other class methods
}
bash
php artisan vendor:publish --tag=repository-config --force