Laravel Nova limit the results in indexQuery

I ran intro a situation where I need to limit the results of a resource to only 3 results. To be more specific, based on the logged…

i have an issue with my laravel 5 project i can’t find the way to run my project on my local machine

127.0.0.1:8000> [Fri Sep 24 10:46:12 2022] PHP Fatal error: Uncaught ErrorException: file_put_contents(/var/www/html/mpm/storage/framework/views/9573eb5dc606d0d2f327fdda9ed9d4ecfd5f1e97.php): failed to open stream: No such file or directory in C:xampphtdocsamitmpmnewmpm20sept2022mpmvendorlaravelframeworksrcIlluminateFilesystemFilesystem.php:122 this is my error…

how can i solve this error?, snappy usage

I’ve tried to find a way to solve this error, but haven’t found it yet “`Declaration of BarryvdhSnappyIlluminateSnappyPdf::getFileContents($filename) must be compatible with KnpSnappyAbstractGenerator::getFileContents(string $filename): string“` above there…

issue in laravel php artisan server [closed]

I have installed a live laravel project on my localhost. when I run there are two warning errors that occur. Anyone have idea how to fix it…

How to check unique validation according to another db column value?

from above table I have to validate regd_no according to to_branch_id. Let’s say if I got to_branch_id = 1 then unique will be apply for regd_no but…

how to convert sql query in laravel query?

Iknow this question is not asked well manner so i am sorry i have sql query this one `SELECT c.*FROM merchantlink m, company c, merchantlinkrelation mlrWHERE (m.initiator_user_id…

I want to remove id from URL in my laravel

In my Laravel application, I have created url: like “https://ift.tt/3wVw4dz” but here, I want to remove id from the last and concatenate id with my 2nd parameter…

How to alias in Laravel Eager Loading Array without changing method name

I need to alias when I do a Laravel eager loading: $employee = Employee::with([‘profilepic’, ’emp_company’])->find($user->employee_id); In my model I have profilepic function and emp_company function. I need…

string validation max 15000 characters not working

I am trying to validate a textarea with max 15000 characters validation rule. This is the rule I created: array:1 [▼ “text” => “required|string|max:15000”] Somewhere before I…

Why does Laravel / Horizon create `queue:failed` processes that eat up memory?

We have recently encountered the problem that our laravel server creates many processes using the command php artisan queue:failed that take about 1.2 GB of RAM each…