Hello all I have code:
{{ route('data', ['min' => 12, 'max' => 123, 'week' => 1, 'month' => 123]) }}
In routes:
Route::get('/data/{array?}', 'ExtController@get')->name('data');
In ExtController:
class GanttController extends Controller
{
public function get($array = [],
Request $request){
$min = $array['min'];
$max= $array['max'];
$week = $array['week'];
$month = $array['month'];
}
But this is not working, I not get params in array. How I can get params in controller?
I tryeid do with function: serialize
, but I get error: missing required params of the route.
Becuase I have ?
in route.