Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
106 views

I'm using Filament PHP v3 with Laravel and have a table that can contain 500,000+ user records. When users click the "Select All" button the application crashes with a memory exhausted error:...
Nguyễn Trọng Hiếu's user avatar
0 votes
0 answers
89 views

I’m currently having an issue with my code — I’m using the REST API to train a Document AI model with the custom extraction type. I have already completed the following steps: Called the v1 process ...
Nor3soN's user avatar
3 votes
2 answers
92 views

I have a ProductLandedCost model with a morphToMany relationship to various other models: Warehouse, for example: class Warehouse extends Model { // ... public function productLandedCosts(): ...
Aaron Dunigan AtLee's user avatar
0 votes
1 answer
55 views

I have Laravel Sail installed in WSL, and I'm trying to debug the application using Xdebug. This only works if I enter the WSL IP address directly into the browser (http://172.17.170.44:8000). If I ...
Nitram Nekonečný's user avatar
0 votes
1 answer
71 views

I have a Laravel 12 project built with the Vue starter kit. By default, the project didn't have any frontend testing libraries. I want to add tests in Vitest. When I run vitest, I get the error: Error:...
TalVik99's user avatar
  • 304
-2 votes
0 answers
105 views

I’m building a Laravel job board website where only logged-in users can create, edit, or delete jobs. I’ve implemented middleware authorization, but even after logging in successfully, I can’t access ...
Izedin Abaoli's user avatar
0 votes
1 answer
103 views

I’m building a job board project in Laravel, and I’m trying to establish a one-to-one relationship between User and Employer. However, my database table is not being generated correctly — the columns ...
Izedin Abaoli's user avatar
0 votes
0 answers
69 views

On laravel/vue/inertiajs/element-plus site I make notification when data are saved and redirected to other page public function update(TaskRequest $request, int $taskId) { \Log::info( '-1 ...
Petro Gromovo's user avatar
Advice
0 votes
5 replies
149 views

In Laravel 10, we had a RouteServiceProvider class that handled loading up all your different routes. This is a snippet from that file in an older project I worked on using Laravel 10: ...
Praise Dare's user avatar
2 votes
2 answers
105 views

I have a Laravel project deployed on Hostinger shared hosting. In local development, images upload and display correctly using Storage::disk('public'). Here is my upload method in a trait: public ...
houda kabbouri's user avatar
1 vote
2 answers
182 views

I am trying to deploy an application on a shared hosting (LWS). My app uses Laravel12 as a backend and Vuejs as frontend The frontend is installed directly on the domain.fr and the backend on a ...
Meaulnes's user avatar
  • 553
2 votes
1 answer
86 views

A PDF is being generated using gotenberg-pdf client (in a Laravel webapp), communicating with the API on the same server (localhost:3000). I would like to pass along the waitForExpression argument as ...
DonUber's user avatar
  • 82
0 votes
0 answers
57 views

I am using stripe for payment purposes. Here the thing is that I am passing my stripe key and oauth token to the view in following way: The controller part return view($filepath, [ '...
bilalahmedcodes's user avatar
1 vote
1 answer
74 views

I'm trying to enable Client Credentials grant to secure API endpoints. I want to create an API between a database and several websites (and SPAs) so I can monitor what website/SPA calls which ...
Srinidhi reddy's user avatar
1 vote
0 answers
240 views

I want to set up a fresh Laravel 12 project that uses Vue.js for the frontend. However, I don’t want to use the new Wayfinder package that comes with Laravel 12. Instead, I’d like to configure it like ...
khalid's user avatar
  • 27
0 votes
0 answers
108 views

Reading https://spatie.be/docs/laravel-data/v4/advanced-usage/typescript docs I try to add laravel data package on laravel/vue/element-plus site and adding app/Data/TaskAdminData.php class with code : ...
Petro Gromovo's user avatar
2 votes
1 answer
111 views

I´ve created a duplicate project of mine to upgrade from Laravel 10 to Laravel 12. As far as the PHP code, routes, and database everything went well as expected. Yet, in my Laravel 10 project I had my ...
McRui's user avatar
  • 2,021
3 votes
1 answer
135 views

I'm using Laravel 11 with Jetstream (Inertia + React) and Sanctum for authentication. Everything works fine when logging in via the default Inertia login page, but when I try to call a protected API ...
 NrzAmirHo3in's user avatar
1 vote
0 answers
101 views

I'm trying to use Xdebug in VSCode. It seems Xdebug is running but I can't get VSCode to hit on the breakpoints I set. In the logfile (see below) it shows some kind of mismatch between files in which ...
CriticalMax's user avatar
0 votes
1 answer
67 views

I currently have my Laravel project accessible via the URL: https://URLXX.com/dev/public/ I’d like to access it directly using: https://URLXX.com/dev The same setup should also work for my staging and ...
Ahmed C's user avatar
  • 61
0 votes
2 answers
63 views

On laravel site I have a table with migration: public function up(): void { Schema::create('tasks', function (Blueprint $table) { $table->id(); $table->foreignId('creator_id')...
Petro Gromovo's user avatar
-1 votes
1 answer
67 views

In laravel 9.0 this code worked well and then I could use $result->property syntax in my blade view instead of array syntax $result['property'] public function getAllWithPaginator($perPage = ...
schel4ok's user avatar
  • 682
0 votes
0 answers
54 views

On Laravel/Vue/Element Plus, site I make filter with some filters in control and in table of Vue file : class TaskController extends Controller { public function __construct() { } /**...
Petro Gromovo's user avatar
1 vote
0 answers
66 views

Does anyone experience this issue? I have laravel + vue 3 project and I recently use typescript. I installed these, "typescript": "^5.9.3", "vue-tsc": "^2.2.12" ...
Yhajiks's user avatar
  • 145
3 votes
1 answer
83 views

I’m refactoring my Laravel application to follow a clean architecture approach with clear separation of concerns: Controller → Service → Repository The Controller handles the HTTP layer,the Service ...
Lana Hanna's user avatar
0 votes
1 answer
57 views

I am running a store() method in which I have to create a project using playwright tests. My playwright index.spec.ts file where I am calling create project is: import { test } from '@playwright/test';...
bilalahmedcodes's user avatar
1 vote
1 answer
136 views

I’m using Laravel + React + Vite, deployed on shared hosting. The problem is that Laravel keeps referencing old build files (e.g. old hash names in public/build/assets) even after I run npm run build ...
Fadhly Rozaq's user avatar
0 votes
1 answer
146 views

I have a scenario where I need to insert multiple records at once. I want to achieve all two: Bulk insert multiple records at once (performance). Return Eloquent model instances for the inserted ...
Ləman Əmrahova's user avatar
2 votes
1 answer
139 views

I have an Order model that has a many-to-many relation to the Product model: class Order extends Model { //... public function products(): BelongsToMany { return $this->...
Marleen's user avatar
  • 2,916
1 vote
2 answers
224 views

I am making a Laravel 8 application that supports themes. The active theme is set in the settings table and the parent controller reads it from there: class FrontendController extends Controller { ...
Razvan Zamfir's user avatar
3 votes
0 answers
101 views

I'm working on a multilingual Laravel 12 app. All my routes are grouped under a {locale} prefix, like this: Route::prefix('{locale}') ->group(function () { Route::get('/activities/{...
20cnts's user avatar
  • 21
0 votes
1 answer
92 views

I can't seem to find a definitive answer on how to test the following boot methods using PHPUnit tests in Laravel. I'm referring to the mthods in public static function boot() on a model. Survey model ...
Daniel Harper's user avatar
0 votes
1 answer
79 views

I have a belongs to many relation between two tables via a pivot table. But the business dictates that the relation needs an additional WHERE clause connecting the first with the last table. table_a ...
Lucas's user avatar
  • 715
1 vote
2 answers
57 views

I have Model with a deeply nested attribute: $model = Model::create(); $model->nested_prop = ['foo' => ['bar' => ['x' => 1]]]; $model->save(); In another method I want to modify a ...
flappix's user avatar
  • 2,259
0 votes
0 answers
129 views

In my Laravel application, I have set up two databases in a single server. All specific migrations and model classes have $connection property set up to use blog instance. The app works fine, no ...
Gasimoff's user avatar
1 vote
0 answers
45 views

I have PHPUnit tests that use data providers as inputs, and by default these are outputted in a diff-like format (when running with php artisan test): 1) Tests\Feature\MyTest::test_feature with data ...
Hashim Aziz's user avatar
  • 6,576
0 votes
0 answers
45 views

Filament::script() does not exists in Filament 3.x and Js::make() to register assets in FilamentAsset only takes a file path. But I have a small script that I want to register on a Forms\Components\...
deviloper's user avatar
  • 7,252
0 votes
1 answer
73 views

We’re running a Laravel 12 application (PHP 8.4) using Redis for sessions, cache, and queues — all within a single Redis database. 'redis' => [ 'client' => 'phpredis', 'options' => [ ...
alexmcfarlane's user avatar
0 votes
0 answers
98 views

I hope you’re all doing well. I’m reaching out because I’m facing an issue with my setup. I have a .NET application and a Laravel system integrated via API. The .NET application sends payloads to the ...
minhaj ur rehman's user avatar
0 votes
0 answers
33 views

I’m trying to implement a custom WebSocket handler in Laravel using BeyondCode Laravel WebSockets. My goal is to handle messages sent via ws.send from the frontend without any HTTP request. Here’s ...
bassant sayed's user avatar
0 votes
1 answer
52 views

I'm very new to OpenShift and I'll soon be switching to it as my employer looks to consolidate our deploy processes to one tool. The application I work on is unique to the rest of the other apps we ...
Eman's user avatar
  • 1,357
3 votes
1 answer
225 views

I'm making most of my components extend from an abstract class where I register some exception handling using the exception lifecycle hook: use App\Livewire\BaseComponent; class MyComponent extends ...
IGP's user avatar
  • 16.4k
2 votes
0 answers
58 views

I'm encountering a permission error when calling the Firebase Cloud Messaging (FCM) API for notifications. While the API retrieves details and generates a Firebase token successfully, the response ...
naseeba c's user avatar
  • 1,060
2 votes
0 answers
58 views

I’m writing a Laravel Dusk browser test for a “Delete Contact” button that shows a native JavaScript confirm() dialog before deleting a record. However, every time the test runs, I get this error: ...
Nken Mandeng Ange Arsene's user avatar
1 vote
1 answer
57 views

I’m working on a Laravel Blade view (monitoring.blade.php) where I have an edit and save button for each row. The edit button works, but when I click the save button, nothing happens — no console logs,...
aDiosuno's user avatar
0 votes
1 answer
79 views

I try to run a Laravel Vue.js application in container for production only. After launching podman-compose up -d I connect to the backend container (brew-backend) with: podman run -it brew-backend /...
Meaulnes's user avatar
  • 553
0 votes
0 answers
24 views

I try to listen to ConversionHasBeenCompletedEvent to delete the original image after the conversion has been completed, but this event did not trigger in my listener. I'm using spatie laravel-...
TDM's user avatar
  • 1
5 votes
1 answer
169 views

I've encountered a problem in my Laravel 12 project. I usually save my data in a remote SQL Server database, but I have to consider the case of a db server malfunction. I have a backup local ...
iLux24's user avatar
  • 85
0 votes
1 answer
75 views

I’m using Laravel 11 with Laratrust v8.3, and I’ve noticed something strange on my production server. When I assign or update a user’s role, it doesn’t take effect immediately — the user still has the ...
Chithira Kumar M's user avatar
0 votes
0 answers
73 views

I'm trying to implement notifications on my system (with Laravel 12 and PHP 8.3.16) using composer require laravel-notification-channels/webpush. Everything installs correctly, but when running php ...
Saul Moreno's user avatar