What is the difference between?

Published 2 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
2 months ago (558,985 XP)

One exists and the other doesn't?

babind

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

jha
jha
2 months ago (18,770 XP)

php artisan route:list

Snapey
Snapey
2 months ago (558,985 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?

jha
jha
2 months ago (18,770 XP)

@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.

Sign In or create a forum account to participate in this discussion.