or try this use App\Http\Requests as HttpReq;
I don't know if this is good solution, but you can return 404 in register controller so if any users visits register page 404 page will be shown
I am using "hesto/multi-auth" version 2.0 and have made 2 guard a) laravel default guard web b) admin guard Login link Example user login : domain.com/login admin login : domain.com/admin/login when I am not logged in as admin and try to access admin guarded routes (e.g /admin/home) I am redirected to /login instead of /admin/login
Tried but no luck.
Have a look at api response, its BlueDart AWB demo pdf content and I am storing it in mysql and retrieving later when needed.
I am getting an response from an external api which contains bytes which can be converted to pdf file. In core PHP, I am unable to display pdf to user with following code
$data // received from api header('Content-Type: application/pdf'); echo $data;
But In laravel I am having trouble displaying it in pdf form. Here is what I have done so far in framework. return response($data) ->withHeaders([ 'Content-Type'=> 'application/pdf', 'Content-Length' => strlen($data), ]);
protected $rules = array( 'brand'=>'required', 'model'=>'required', 'source'=>'required', 'name'=>'required|string|min:3|max:255', 'email'=>['nullable','email','max:255',new EmailValidator()],// this line is causing error 'phone'=>'required|digits_between:10,15', 'alt_phone'=>'nullable|digits_between:10,15', 'address'=>'required|string|min:3', 'description'=>'required|string|min:3', 'state'=>'required', 'city'=>'required', 'follow_date'=>'required|date|after:today', 'visit_date'=>'required|date|after:today', );