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

That's pretty static. you should try to make it more dynamic like so:

On ROutes:


Route::get('status/{status}', 'PropertiesController@getPropertyByProgressStatus')

then on the PropertiesController;


public function getPropertyByProgressStatus($status){

     if($status==1)
        // purchased code

     elseif($status==2)
        // waiting code 

}

then the links will be

http://api/v1/properties/status/1 // FOR PURCHASED

http://api/v1/properties/status/2 // FOR WATING

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

maykino maykino Joined 26 Oct 2015

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.