hello I want to make a validation here in my table there is a column to store the data in the form of url to another link, here I want to make validation if the data exists then it will point to the link in $ get-> url_drive if it's not there then I want to display it in the form of a script for the user and redirect back this my controller
$id = $request->input('id');
$type = $request->input('type');
$name = $request->input('name');
$type = strtolower($type);
$name = strtolower($name);
$get = DB::table('users.user_connects')->where([
['user_id',$id],
['type',$type],
['name',$name]
])->first();
if(isset($get)){
// here i am confused
}
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/38bOZ6s
via IFTTT
Aucun commentaire:
Enregistrer un commentaire