![]() ![]() Notice that we used a fully qualified namespace for using the Channel model. There is one last thing we can do to clean up the AppServiceProvider just a little bit more. The code above is making sure that the $channels variable is available anytime it is needed. Once again, if you go ahead and visit all of the different pages on your site, everything works perfect. View::share('channels', AppChannel::all()) Check out this one liner highlighted below:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |