create controller in laravel command line
php artisan make:controller MyControllerphp artisan make:controller UserControllerphp artisan make:controller PhotoController --resource <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Http\Controllers\HelloWorldController;
class MakeImportsCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'helloworld';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Say Hello World Controller';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
return $this -> helloWorld();
}
}
php artisan make:controller ShowProfile
Also in PHP:
- capitalize all letters php
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in \xampp\htdocs\
- age php datetime
- date php W_z
- array_key_exists not finding numbers
- add column to migration laravel
- explode php
- ADjust time limit php
- Illuminate\Contracts\Container\BindingResolutionException Target class [SlugController] does not exist.
- codeigniter last insert id codeigniter
- functions returns a random number php
- AWS HTTP error: SSL operation failed with code 1.
- /phpspreadsheet 1.15.0 requires ext-dom * centos
- .lenght en php string
- class in php
- create project larave
- Laravel 8 seed
- PHP Startup: Unable to load dynamic library 'curl'
- date month php
- dump all variables twig
- Str::slug laravel 8
- d-m-Y H:i
- date_format() in php
- create laravel command to clear cache