9
9
9634682015-06-06 21:35:04
Laravel
963468, 2015-06-06 21:35:04

What is the problem with Laravel5, VIew not found?

FatalErrorException in BaseController.php line 14:
Class 'App\Http\Controllers\View' not found
in BaseController.php line 14

class BaseController extends Controller {
    public function __construct()
    {
        $this->beforeFilter(function(){
            View::share('catnav', Category::all());    
        });

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2015-06-06
@Rikcon

\View::share('catnav', Category::all());

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question