¨4.0.1¨

This commit is contained in:
¨NW¨
2023-12-03 14:07:47 +00:00
parent c08b36d1b6
commit f35052522d
1112 changed files with 43019 additions and 24987 deletions

View File

@@ -16,9 +16,21 @@ class AppServiceProvider extends ServiceProvider
*
* @return void
*/
public function boot()
public function boot(): void
{
/*
|--------------------------------------------------------------------------
| Configure default String length of the generated migrations
|--------------------------------------------------------------------------
| Laravel uses the utf8mb4 character set by default, which includes
| support for storing "emojis" in the database. if you are running a
| version of MySQL older than the 5.7.7 release or MariaDB older than
| the 10.2.2 release, you need to configure the default string length
| generated by migrations in order for MySQL to create indexes for
| them.
*/
Schema::defaultStringLength(191);
Paginator::useBootstrap();
if (Request::secure()) {
@@ -26,14 +38,15 @@ class AppServiceProvider extends ServiceProvider
}
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
public function register(): void
{
if (! config('app.installed')) {
if (!config('app.installed')) {
$this->app->register(DotenvEditorServiceProvider::class);
}
}

View File

@@ -16,16 +16,18 @@ class RouteServiceProvider extends ServiceProvider
*/
protected $namespace = 'FleetCart\Http\Controllers';
/**
* Define the routes for the application.
*
* @return void
*/
public function map()
public function map(): void
{
$this->mapWebRoutes();
}
/**
* Define the "web" routes for the application.
*
@@ -33,7 +35,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @return void
*/
protected function mapWebRoutes()
protected function mapWebRoutes(): void
{
Route::middleware('web')
->namespace($this->namespace)