MadMikeyB's avatar

MadMikeyB liked a comment+100 XP

1mo ago

Thanks, that’s what I thought, but I was a bit confused. Hopefully they’ll fix it soon. Their proofreader needs some more coffee.

MadMikeyB's avatar

MadMikeyB liked a comment+100 XP

1mo ago

I have read the post, sure ... nothing is talking about this.

Then you didn't understand what you read.

They posted screenshots from laravel.com, the official website of Laravel.

Why do you have the FlightController class inside the UserController.php file ?

They don't. Laravel.com has.

MadMikeyB's avatar

MadMikeyB liked a comment+100 XP

1mo ago

I happened to go to laravel.com and noticed the new site. It looks really good, but I was confused by something near the top of the first page. In the Auth example it shows 2 tabs:

Laravel_auth_example1.

Laravel_auth_example2.

The UserController seems wrong, but it's at the top of the front page, so maybe I just don't understand it. Is this code correct or just a typo?

MadMikeyB's avatar

MadMikeyB wrote a reply+100 XP

1mo ago

image

The laravel.com page is wrong, you're absolutely correct.

class FlightController

Should not exist in a file named UserController.php. Laravel's example on their marketing website is incorrect. If they've not yet been notified, they should be, and I have no doubt it will be fixed soon.

MadMikeyB's avatar

MadMikeyB liked a comment+100 XP

1mo ago

what are you on about?