for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Providers;
use App\Link;
use Barryvdh\Debugbar\ServiceProvider as DebugbarServiceProvider;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;
use Laravel\Dusk\DuskServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
Schema::defaultStringLength(191);
Route::bind('link_hash', function ($hash = '') {
return Link::where('hash', $hash)->first();
});
}
* Register any application services.
public function register()
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
$this->app->register(DebugbarServiceProvider::class);