How to create Restful api for mobile app in laravel 5.2

I am creating api for mobile app in laravel 5.2 version but I don’t getting any idea how to return exception in json format. I’ve doing api…

Laravel validator throws an exception instead of redirecting back

After I upgraded to Laravel 5.2 I encountered a problem with the laravel validator. When I want to validate data in a controller take for example this…

Model Observer, not working for update?

Im having trouble trying to get my model observer to work.. It is working as expected for create and deleted, but not for updating. Im guessing the…

How to preserve angular routes when using laravel?

I am new to Laravel, so take it easy on me 🙂 I have had my Angular 7 application on www.somedomain.com for a year now, but I…

Laraval storage:link command failing because of Database Error

When I am executing the below command in Laraval php artisan storage:link It throws a database connection error IlluminateDatabaseQueryException : SQLSTATE[HY000] [2002] Connection refused (SQL: select *…

how to track every actions on records with ElasticSearch?

How we can insert unique record to our types with ElasticSearch, for example 3 user updated the same record and we should store 3 record in our…

How to use Request file without using it in Laravel function parameter

I have request file that I use for validation and other codes for my request. And I have some instance that I want to also use the…

UnexpectedValueException: The Response content must be a string or object implementing __toString(), “boolean” given

Getting error after installing dompdf [2022-01-28 18:23:03] local.ERROR: UnexpectedValueException: The Response content must be a string or object implementing __toString(), “boolean” given. in D:xampphtdocsmyprojectvendorsymfonyhttp-foundationResponse.php:399 from Newest questions…

How to create table with a header from another table like below in laravel

i am working on a laravel project where i have to create a table the client request table like this the client requested table category name and…

Problen in multiple auth Attemp() in laravel 5

i am bit confused by the code auth::attempt() is not working can anyone help me with this???? controller.php public function postLogin(Request $request){……………if (Auth::attempt(‘frontendUsers’, $userdata)) { return Redirect::back()->with(‘success’,true);…