This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-cli | |
RUN apt-get update \ | |
&& apt-get install -y git zlib1g-dev \ | |
&& docker-php-ext-install zip \ | |
&& curl -sS https://getcomposer.org/installer | /usr/local/bin/php -- --install-dir=/usr/bin/ --filename=composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " Does not work with vi | |
so ~/.vim/plugins.vim " Source the plugins file | |
syntax enable | |
set shellcmdflag=-ic " Enable bash interactive mode (load .bashrc) | |
let mapleader = ',' " Leader key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Books\Resources; | |
use Illuminate\Http\Resources\Json\Resource; | |
class BookResource extends Resource | |
{ | |
public function toArray($request) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Books; | |
use App\Eloquent\Book; | |
use App\Modules\Books\Resources\BookResource; | |
class ListBooks | |
{ | |
public function __invoke(Book $book) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Modules\Books\ListBooks; | |
use Illuminate\Support\Facades\Route; | |
Route::get('/books', ListBooks::class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Route; | |
Route::group([], base_path('app/Modules/Books/routes.php')); | |
Route::group([], base_path('app/Modules/Authors/routes.php')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\Route; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
class RouteServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Administrators; | |
use App\Http\Controllers\Controller; | |
use App\Modules\Administrators\Requests\StoreAdministratorRequest; | |
use App\Eloquent\Auth\Administrator; | |
class StoresAdministrators extends Controller | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Modules\Administrators\Bags; | |
use Illuminate\Support\Facades\Hash; | |
class AdministratorBag | |
{ | |
private $attributes; |