PHP code example of rafni / laravel-toolkit
1. Go to this page and download the library: Download rafni/laravel-toolkit 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/ */
rafni / laravel-toolkit example snippets
'providers' => [
...
Rafni\LaravelToolkit\Providers\LaravelToolkitServiceProvider::class
...
]
public function register()
{
...
$this->app->bind(ExampleServiceContract::class, ExampleService::class);
...
}
app/
Http/
Controllers/
NameSpace/
ServiceNameController.php
Repositories/
NameSpace/
ServiceNameEloquent.php
ServiceNameService.php
ServiceNameContract.php
resources/
views/
NameSpace/
index.blade.php
show.blade.php
create.blade.php
edit.blade.php