1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +01:00
freescout/app/Providers/AppServiceProvider.php
2018-07-23 03:12:23 -07:00

40 lines
1.1 KiB
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// To avoid MySQL error in packages:
// "SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes"
Schema::defaultStringLength(191);
// Models observers
\App\Mailbox::observe(\App\Observers\MailboxObserver::class);
// Eloquent events for this table are not called automatically, so need to be called manually.
//\App\MailboxUser::observe(\App\Observers\MailboxUserObserver::class);
\App\User::observe(\App\Observers\UserObserver::class);
\App\Conversation::observe(\App\Observers\ConversationObserver::class);
\App\Thread::observe(\App\Observers\ThreadObserver::class);
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}