What is the difference between?

Published 11 months ago by babind

php artisan route: scan and php artisan route:list

Best Answer (As Selected By babind)
blueshift9

You must be running a way old version of Laravel.....wasn't "scan" dropped about the same time as annotations and then Laravel Collective has it in the annotations package since then? So, yeah - Snappy is correct in that it does exist in Laravel per se.

Snapey
Snapey
11 months ago (926,235 XP)

One exists and the other doesn't?

babind

which one is the standard one to use in Laravel 5.4?

shakti

php artisan route:list

Snapey
Snapey
11 months ago (926,235 XP)

Help is built in to the artisan command, plus one works when you try it and the other throws an error.

Is this a real question?

babind

both of them works fine ..but the syntax is quite different, therefore I was wondering which one is the standard one?

shakti

@babind as per my point of view

 php artisan route:list

blueshift9

You must be running a way old version of Laravel.....wasn't "scan" dropped about the same time as annotations and then Laravel Collective has it in the annotations package since then? So, yeah - Snappy is correct in that it does exist in Laravel per se.

Please sign in or create an account to participate in this conversation.