aswi2020merlot-gitlab/app/Providers/AppServiceProvider.php @ f3056372
1 |
<?php
|
---|---|
2 |
|
3 |
namespace App\Providers; |
4 |
|
5 |
use Illuminate\Support\ServiceProvider; |
6 |
use Illuminate\Support\Facades\Schema; |
7 |
|
8 |
class AppServiceProvider extends ServiceProvider |
9 |
{
|
10 |
/**
|
11 |
* Register any application services.
|
12 |
*
|
13 |
* @return void
|
14 |
*/
|
15 |
public function register() |
16 |
{
|
17 |
$this->app->bind('path.public', function() { |
18 |
return base_path('public_html'); |
19 |
});
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* Bootstrap any application services.
|
24 |
*
|
25 |
* @return void
|
26 |
*/
|
27 |
public function boot() |
28 |
{
|
29 |
//
|
30 |
Schema::defaultStringLength(200); |
31 |
}
|
32 |
}
|