This is my Route.php
Route::get('users/{user_name}/{source}/{destination}/{members}' , 'Userscontroller@index');
I want array of members in url. How can I get it and How can I pass to index()
in UsersController
.
Here is my UsersController.php
public function index($user_name, $source , $destination , $members[] )
{
$users = DB::table('users')->insert(array(
'user_name' => $user_name,
'source' => $source,
'destination' => $destination,
));
}
How Can I store array of members in database as well ?
Thank You in Advance.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/28PwhCr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire