Best Way: ajax and route

Posted 4 months ago by Boris56

Hi,

I would like to know what is the best way to use Laravel roads with ajax calls.

Use the classic "web.php" routes use by php app or create specific routes in "api.php"?

I am asking for safety and good practice.

Thank you.

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

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.