Converting code from Laravel-4 to Laravel-5

I am using realtime chat using Laravel 4 Realtime Chat . I have a problem converting this code as I have never used Laravel 4.

require app_path().'/filters.php';
require app_path().'/events.php';

      

The link above says to write these two lines to app/start/global.php

. But in laravel 5 there is no such file. Should I save events.php in my app directory or app / events.

Can this code be used in laravel-5? or How can I solve the above problem?

+3


source to share


1 answer


I would add it to the download method of your app service provider Application / Suppliers / AppServiceProvider.php



+1


source







All Articles