This file contains 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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
class TruncateSeededTables extends Command | |
{ | |
/** |
This file contains 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
View::composer( | |
[ | |
'layouts.base', | |
], | |
function($view) use ($variable) { | |
$view->with(compact('variable')); | |
}); |
This file contains 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\Helpers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Response; | |
class ErrorHandlers | |
{ | |
/** | |
* Quickly define a general token mismatch error message | |
* @return string |