Calling Function in View - Laravel 5.5

0

Well, I've been working on PHP for some time now.

I'm calling a function in my View as follows:

{{ $result_resumo = app(App\Http\Controllers\Site\SiteController::class)->NoticiasResumo($dados_noticias->post,80, FALSE, "") }}

Now I ask:

Is there another way to call the function without typing the entire path of Controller ?

Note: I am using the Laravel Framework 5.5

    
asked by anonymous 05.01.2019 / 13:10

0 answers