Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Putheaengineer's avatar

php artisan fresh

If i run the command php artisan fresh to remove the authentication . How can i get it back ?

kindly tell me please

Thanks

0 likes
8 replies
Wowenko's avatar

There is no way, but you can copy the files from other project. Check FreshCommand.php file to get the list of all files removed.

Berrayti's avatar

I have a similar question, what is the equivalent of php artisan fresh in Laravel 5.1 ?

Berrayti's avatar

@bestmomo : I'm new to laravel, so how can I run it ?? And what's the solution for those less stuff ??

bestmomo's avatar

@railto the fresh command is old and still in core but not in provider, strange ^^

It's easy to create it as shown there.

Please or to participate in this conversation.