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()
    {
         Comment::withoutWrapping();
        Blade::if('featured', function($comment){
            return $comment->featured();
        });
    }
public function boot ( ) { Blade :: if ( 'featured' , function ( $ comment ) { return $ comment -> featured ( ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .
// // Comment::withoutWrapping();