app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     * Here means, wenn a view is loaded, we always get a channel variable.
     *
     * Alternatively, you can create a new serviceprovider like ViewServiceProvider
     *
     * @return void
     */
Bootstrap any application services.
Here means, wenn a view is loaded, we always get a channel variable.

Alternatively, you can create a new serviceprovider like ViewServiceProvider

@return void
Bootstrap any application services . Here means wenn a view is loaded we always get a channel variable . Alternatively you can create a new serviceprovider like ViewServiceProvider @return void
public function boot()
    {
        \Validator::extend('spamfree', 'App\Rules\SpamFree@passes');
    }
public function boot ( ) { \ Validator :: extend ( 'spamfree' , 'App\Rules\SpamFree@passes' ) ; }
Bootstrap any application services.
Bootstrap any application services .
// \View::composer(['threads.create','threads.index'], function ($view) { //This Query will be toggled until view loaded. // \View::composer('*', function ($view) { //     $channels = \Cache::rememberForever('channels', function () { //         return Channel::all(); //     }); //     $view->with('channels', $channels); // }); //equal to above, but it gonna run before 'RefreshDatabase' by test. // \View::share('channels', Channel::all());