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()
    {
        \View::composer(['quote.motivasi', 'quote.inspirasi'], 'App\Http\ViewComposers\AppNameComposer');
    }
public function boot ( ) { \ View :: composer ( [ 'quote.motivasi' , 'quote.inspirasi' ] , 'App\Http\ViewComposers\AppNameComposer' ) ; }
Bootstrap any application services.
Bootstrap any application services .
// \View::share(['app_name'=>'Quote App v2.0'], ['quote.motivasi', 'quote.inspirasi']);