File "AppServiceProvider.stub"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/joynala/maker/src/Lib/Stubs/AppServiceProvider.stub
File size: 694 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if(request()->ip() != '127.0.0.1'){
Schema::defaultStringLength(191);
if (!file_exists(base_path('storage/installed')) && !request()->is('install') && !request()->is('install/*')) {
header("Location: install");
exit;
}
}
}
}