laravel create controller command

Solutions on MaxInterview for laravel create controller command by the best coders in the world

showing results for - "laravel create controller command"
Leni
19 Aug 2016
1php artisan make:controller MyController
Roberto
24 Jan 2020
1php artisan make:controller UserController
Benjamín
19 Aug 2018
1php artisan make:controller NameController
Florencia
17 Jan 2016
1php artisan make:controller ShowProfile
Lia
27 May 2017
1php artisan make:controller PhotoController --resource --model=Photo
Anael
28 Apr 2018
1 <?php
2
3namespace App\Console\Commands;
4
5use Illuminate\Console\Command;
6use App\Http\Controllers\HelloWorldController;
7
8class MakeImportsCommand extends Command
9{
10    /**
11     * The name and signature of the console command.
12     *
13     * @var string
14     */
15    protected $signature = 'helloworld';
16
17    /**
18     * The console command description.
19     *
20     * @var string
21     */
22    protected $description = 'Say Hello World Controller';
23
24    /**
25     * Create a new command instance.
26     *
27     * @return void
28     */
29    public function __construct()
30    {
31        parent::__construct();
32    }
33
34    /**
35     * Execute the console command.
36     *
37     * @return mixed
38     */
39    public function handle()
40    {
41        return $this -> helloWorld();
42
43    }
44}
45
similar questions
queries leading to this page
laravel create controller command