app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        Relation::morphMap([
            'user_profiles' => \App\Models\UserProfile::class,
            'album_items'   => \App\Models\AlbumItem::class,
            'posts'         => \App\Models\Post::class,
            'friends'       => \App\Models\Friend::class,
            'comments'      => \App\Models\Comment::class,
            'likes'         => \App\Models\Like::class,
            'messages'      => \App\Models\Message::class,
            'group_user'    => \App\Models\GroupUser::class,
            'user_tags'     => \App\Models\UserTag::class,
            'groups'        => \App\Models\Group::class,
        ]);
        Carbon::setToStringFormat('m/d/Y');
    }
public function boot ( ) { Relation :: morphMap ( [ 'user_profiles' => \ App \ Models \ UserProfile :: class , 'album_items' => \ App \ Models \ AlbumItem :: class , 'posts' => \ App \ Models \ Post :: class , 'friends' => \ App \ Models \ Friend :: class , 'comments' => \ App \ Models \ Comment :: class , 'likes' => \ App \ Models \ Like :: class , 'messages' => \ App \ Models \ Message :: class , 'group_user' => \ App \ Models \ GroupUser :: class , 'user_tags' => \ App \ Models \ UserTag :: class , 'groups' => \ App \ Models \ Group :: class , ] ) ; Carbon :: setToStringFormat ( 'm/d/Y' ) ; }
Bootstrap any application services.
Bootstrap any application services .
/**
         * Define morph types (what's saved to {object}_type column)
         */ // Default carbon format