skip to Main Content

How to get the type of the user in laravel? – Phpmyadmin

I want the code to check if the current user category is admin or superadmin, it will show the edit panel @if (Auth::user()->category=='admin'||Auth::user()->category=='superadmin') <td class="center"> <a href="{{ route('Order.edit', ['id'=>$order->id ]) }}" class="btn btn-warning btn-sm custom"> <i class="glyphicon glyphicon-edit"></i> EDIT</a> </td>…

VIEW QUESTION

Php versions – PHP result row as an object not set

I have this PHP code in which I try to edit a row in the database $sql="SELECT * FROM `event` where `EId`='".$_GET['EId']."'"; $res=$conn->query($sql); $numrows=mysqli_num_rows($res); if ($numrows>0) { $obj = mysqli_fetch_object($res); } if ($_REQUEST["mode"]=="save") { if ($_FILES['image']['name']!="") { del_img("event/",$obj->Picture); $Picture=post_img($_FILES['image']['name'], $_FILES['image']['tmp_name'],"event");…

VIEW QUESTION
Back To Top
Search