Skip to content

Instantly share code, notes, and snippets.

View asifulmamun's full-sized avatar
🏠
Working from home

Al Mamun asifulmamun

🏠
Working from home
View GitHub Profile
@asifulmamun
asifulmamun / console.php
Created August 16, 2023 16:08 — forked from miftahafina/console.php
Remove laravel controller with artisan command
<?php
/**
* Copy and paste the code below into your routes/console.php file.
* You can add more command such as 'remove:model', 'remove:middleware', etc if you want,
* just modify the $file_location variable.
*/
Artisan::command('remove:controller {name : Name of the controller}', function ($name) {