Support the ongoing development of Laravel.io →
Requests Database
Last updated 2 years ago.
0

Best Practice is really per person it seems around the Laravel Community which makes Laravel so great. It can be adapted for just about anybody. If you are creating an API I would say just use Data Headers so you would define params such as 'start_at' and 'end_at' then use the Input::get('start_at').

If just looking to define it as the URL can do

Route::get('mydata/{startDate}/{endDate}')
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

kokarat kokarat Joined 10 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.