how to make the controller redirect results to an outside link or return a script alert in LARAVEL

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

تعليقات

المشاركات الشائعة من هذه المدونة

I am unable to figure out how to create payment collection request, after a form has been submitted in laravel

laravel, mysql transaction not working after failed one time