What do console.php and channels.php in the routes folder of laravel5.4 do?
我想大声告诉你
我想大声告诉你 2017-05-16 16:47:38
0
1
544

What do console.php and channels.php in the routes folder of laravel5.4 do?

我想大声告诉你
我想大声告诉你

reply all(1)
迷茫

console.php is used to define Artisan commands in the form of closures, such as

Artisan::command('build {project}', function ($project) {
    $this->info("Building {$project}!");
});

The above command can be created directly in console.php, and the content in the file will be automatically loaded in the app/Console/Kernel.php file.

channels.php用于定义Laravel的Event Broadcasting Function authorization rules for channels, please see: Event Broadcasting

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template