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
| #!/bin/sh | |
| # | |
| # Run docker-compose in a container | |
| # | |
| # This script will attempt to mirror the host paths by using volumes for the | |
| # following paths: | |
| # * $(pwd) | |
| # * $(dirname $COMPOSE_FILE) if it's set | |
| # * $HOME if it's set | |
| # |
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
| <table class="table table-striped"> | |
| <thead> | |
| <tr> | |
| <th>{{ trans('user.name') }}</th> | |
| <th>{{ trans('user.email') }}</th> | |
| <th>{{ trans('user.action') }}</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| @foreach($users as $user) |
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; | |
| use App\UrlPresenter\EloquentRoutePresenter; | |
| use Illuminate\Contracts\Auth\MustVerifyEmail; | |
| use Illuminate\Foundation\Auth\User as Authenticatable; | |
| use Illuminate\Notifications\Notifiable; | |
| /** | |
| * Class User | |
| * @package App\User |
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\UrlPresenter; | |
| use Illuminate\Support\Facades\Route; | |
| use Illuminate\Support\Str; | |
| use Symfony\Component\Routing\Exception\RouteNotFoundException; | |
| /** | |
| * Trait EloquentRoutePresenter | |
| * @package App\UrlPresenter | |
| */ | |
| trait EloquentRoutePresenter |
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\UrlPresenter; | |
| use Illuminate\Support\Facades\Route; | |
| use Illuminate\Support\Str; | |
| use Symfony\Component\Routing\Exception\RouteNotFoundException; |
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 | |
| $multiply = function($a, $b) { | |
| return $a * $b; | |
| }; | |
| $addition = function($a, $b) { | |
| return $a + $b; | |
| }; |
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 | |
| class Cal | |
| { | |
| function multiply(int $number) | |
| { | |
| return $number * 10; | |
| } | |
| } |
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 | |
| function multiplyBy($err, $data, $multiplyByNumber) { | |
| if ($err) { | |
| throw $err; | |
| } | |
| return intval($data)*intval($multiplyByNumber); | |
| }; |
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 | |
| function addition(int $a, int $b) | |
| { | |
| return $a + $b; | |
| } | |
| function subtraction(int $a, int $b) | |
| { | |
| return $a - $b; |
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 | |
| function addition(int $a, int $b) | |
| { | |
| return $a + $b; | |
| } | |
| function subtraction(int $a, int $b) | |
| { | |
| return $a - $b; |