Answer the question
In order to leave comments, you need to log in
Problem with service providers in Laravel 5?
I started studying Larvel 5. I do everything according to the official documentation. It got to the point where you need to transfer data to all views and nothing happens here. I write in the file app/Providers/AppServiceProvider.php in the boot method the line view()->share('name', 'Name')? gives an error that there is no such variable. What could be the problem? By the way, I tried to delete the app / providers folder, the project seems to work. I would appreciate and appreciate your answers!
Answer the question
In order to leave comments, you need to log in
I did similar through Middleware.
In Kernel.php in $middleware we prescribe our middleware, which binds the variable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question