Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
51 views

I'm running Laravel 9 feature tests with the RefreshDatabase trait in GitHub Actions. Locally, everything works fine, but on CI, it seems that RefreshDatabase tries to connect with the wrong database ...
JayVch's user avatar
  • 89
0 votes
0 answers
61 views

In Laravel 11, Eloquent introduced HasScopedValues to define scoped values for model attributes somewhat like $casts. I’m unclear how it differs from $casts can it transform values like casts or is it ...
S. Narthanan's user avatar
0 votes
0 answers
62 views

I’m building a multi-tenant SaaS application with Laravel 12 using the database queue driver. Problem Each tenant should have its own isolated queue so that one tenant’s heavy background jobs don’t ...
Prakash Tank's user avatar
0 votes
0 answers
138 views

I am switching from Windows to Linux (Fedora), and I keep getting this error in my Laravel project that I did not have on Windows: Please, any ideas? Update: I have tried to do a clean install of ...
Adrian2895's user avatar
2 votes
0 answers
48 views

I am using the infinite scroll with Vue 3 and InstantSearch(Algolia) but the <ais-search-box placeholder="Search here…" class="searchbox" /> it should be in a different ...
Luis's user avatar
  • 467
0 votes
0 answers
39 views

I'm currently using Mailtrap to send test emails. I would like to override Illuminate\Mail\Mailer.php -> send() method. How can I do this in Laravel 12? This is what I have so far: namespace App\...
zoltalar's user avatar
  • 170
0 votes
0 answers
30 views

Using CKEditor (v4) and with the following code in my web.php file Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth']], function () { \UniSharp\...
Jim's user avatar
  • 63
0 votes
1 answer
83 views

I’m working on a Laravel 10 project that uses Redis as the queue driver with Horizon. I’ve noticed that sometimes my queued jobs don’t execute, and nothing shows up in the failed_jobs table either. ...
S. Narthanan's user avatar
1 vote
1 answer
105 views

Frontend part kept popping 401 Unauthorized, so I switched to Postman to just test the API. Just to mention I am using Sanctum for API auth. It keeps throwing 401 error, but Register route is not ...
G M's user avatar
  • 11
1 vote
1 answer
115 views

I just got done building a project locally on Laravel and decided to move forward with the hosting on Laravel Cloud since the deployment is straightforward. In my application, I allow users to upload ...
Laspeed's user avatar
  • 1,121
2 votes
0 answers
121 views

I have a fresh Laravel 10 app and I'm trying to test queues. I created a job with php artisan make:job TestJob. routes/web.php Route::get('/test-job', function () { \App\Jobs\TestJob::dispatch(); ...
S. Narthanan's user avatar
1 vote
1 answer
77 views

I am creating a method and using a service class to send custom headers to the Mailchimp API. The custom headers which I need to send exactly are: "Accept-Language" "en-US, en;q=0.9&...
bilalahmedcodes's user avatar
0 votes
1 answer
65 views

Is there an elegant way to return null from one-to-one relation based on other model's field? Eg. I have ModelA with field1, $field2. Maybe raw joins suitable for that and could be used in relations? ...
RomanKovalev's user avatar
0 votes
0 answers
85 views

I have a mail view named passwordReset.blade.php like this <!DOCTYPE html> <html> <head> <title>Wachtwoord Reset</title> <style> body { ...
Jimbo's user avatar
  • 19
2 votes
0 answers
104 views

I’m working on a Laravel 10 project and ran into a Class not found error when executing an artisan command. Goal: I want to create a custom artisan command that fetches data from the database. Problem:...
S. Narthanan's user avatar
0 votes
0 answers
94 views

I have a feeling I'm doing something very stupid but I cannot get the callback on useEchoPublic to fire no matter what I try The event is structured like so, this is pulled straight from the browser ...
AntlerFox's user avatar
  • 180
0 votes
0 answers
98 views

I'm currently building a multi-tenant application using stancl/tenancy (every tenant uses their own database) in my Laravel application. Whenever I'm writing tests, tests fail a lot due to the error ...
FryingPan's user avatar
  • 123
0 votes
0 answers
97 views

I’m building an app where my backend is a Laravel API (running on http://localhost:8000) and my frontend is a Next.js 15 app (running on http://localhost:3000). I want to store the Sanctum token ...
Lana Hanna's user avatar
0 votes
0 answers
77 views

I am working on a scholarship management system using Laravel 12, Laravel Breeze, Blade, Tailwind, and MySQL. I created a multi-step applicant form with text fields and file uploads (passport photo, ...
aDiosuno's user avatar
0 votes
0 answers
29 views

I’m building a dynamic form in FilamentPHP where ContentType stores field definitions in JSON. I created a trait to map each field into a Filament component like this: trait BuildsDynamicFields { ...
Bhazk's user avatar
  • 231
1 vote
0 answers
55 views

Edit: I found the Answer so if you want to center the title access the SetTitle() method on the x-axis and then in second param pass the position. like this. $graph->xaxis->SetTitle('Above Grade ...
Asim Badi's user avatar
1 vote
1 answer
89 views

My app uses Laravel as backend, and React as a frontend solution with Inertia as intermediary. The idea is to load .wav files from media storage (say /storage/app/audio) to let users playback phone ...
Andrii's Quest's user avatar
0 votes
0 answers
85 views

I have an issue with my code in production Heroku (running without problem locally). I get the error Target class [livewire] does not exist This is the code in my AppServiceProvider which triggers the ...
KarmaWin's user avatar
-2 votes
1 answer
64 views

SQLSTATE[42501]: Insufficient privilege: 7 ERROR: permission denied for schema public at character 14 (Connection: pgsql, SQL: create table "migrations" ("id" serial not null ...
Eric Dunny's user avatar
0 votes
0 answers
147 views

I need your help in finding the error. I got an error: Missing required parameter for [Route: single-campaigns_user] [URI: campaigns-user/campaign-single/{lang}/{cam_id}] [Missing parameter: cam_id]. ...
Andrew Olinevich's user avatar
3 votes
0 answers
155 views

After running the larael new command using the vue starter kit, I get the following: failed to load config from C: \Users\rober\MyDocuments\www\tutorials\test123\vite.config.ts error ...
Robert's user avatar
  • 31
2 votes
0 answers
83 views

We’re running some Laravel commands using Supervisor on our server. Each program writes to a log file in storage/logs. The issue is that whenever a Supervisor rotates or creates a new log file, it’s ...
Md Atiqur's user avatar
  • 733
0 votes
1 answer
113 views

My query is taking too long to run when I use general filters, but it's fine with specific filters. I suspect it's an optimization issue. To fix it, I'm trying to create a non-clustered index on a new ...
nexus-4's user avatar
  • 13
0 votes
0 answers
53 views

I'm trying to create the APP_KEY via AWS CDK but I don't think there is a relevant Construct to do this. I tried this: APP_KEY: ECSSecret.fromSecretsManager( new Secret(...
Riza Khan's user avatar
  • 3,238
1 vote
0 answers
75 views

I am creating a Filament form using ModalTableSelect(). My current field configuration is: ModalTableSelect::make('item_id') ->label('Item Code') ->placeholder('Click to select items') ->...
koala's user avatar
  • 11
1 vote
0 answers
86 views

I have an issue where I need to paginate an eloquent collection that has calculated fields, fields not in the database. Livewire's WithPagination trait only wants to be applied to an Eloquent query ...
Geo R's user avatar
  • 33
0 votes
1 answer
240 views

I ran into an issue when trying to upload files using Livewire on my production server. The server responded with 401 Unauthorized. My setup includes: Cloudflare with Flexible SSL (Browser → ...
Andrew Dorokhov's user avatar
0 votes
1 answer
116 views

I need to check just existence of Laravel model relationships. Is there a loader similar to withCount? Eg // with count $authors = Author::withCount('books')->get(); foreach ($authors as $author) { ...
JohnSmith's user avatar
  • 506
-1 votes
1 answer
119 views

I have a table in my blade page, <table> <thead> <tr> <th>Color</th> <th>Total</th> </tr> </thead> <tbody> @if ...
user4221591's user avatar
  • 2,236
2 votes
1 answer
531 views

On my local development environment, I have Laravel running in a php:8.3-fpm container, connecting to MySQL in a mysql:8.0 container. After a recent rebuild, suddenly I can't complete artisan migrate ...
Jeremy Wadhams's user avatar
0 votes
1 answer
61 views

I've already written a web application with Laravel, but I'm not nearly as experienced yet. Therefore, I need to ask for help. Platform: Laravel 12 Starter Kit LiveWire, PHP 8.2.12 Database: mariadb ...
tomtom's user avatar
  • 1
0 votes
1 answer
53 views

I have created a PWA from my Laravel + Inertia react app, I have a service-worker running that listens to push events. Whenever we register the service-worker initially we subscribe to the push event: ...
Keygun2k1's user avatar
  • 460
1 vote
2 answers
144 views

I'm trying to send email in laravel 12 with upload file (multiple attachment) with subject and body from form submitting. my code looks like this in frontend blade <div class="container mt-4&...
laravel's user avatar
  • 11
0 votes
1 answer
181 views

I am using Filament 3. I can access the admin login page on my local project but not the production server (Heroku). What I tried so far : configure htaccess add a procfile canAccessPanels is ...
KarmaWin's user avatar
1 vote
1 answer
101 views

I keep getting this error below GuzzleHttp\Exception\RequestException: cURL error 1: Received HTTP/0.9 when not allowed (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://127.0.0.1:...
Christopher C Okonkwo's user avatar
0 votes
0 answers
31 views

I have deployed my Laravel application on a cPanel server under a subdomain. The app is hosted at: Installer link (working fine): https://sns.sadistributor.com/public/install/ Main link (not working): ...
Muhammad Hamza's user avatar
1 vote
1 answer
305 views

I just created a fresh Laravel 12 project using the Livewire starter kit and added Flux UI. Steps I followed: laravel new my-app # Selected starter kit: > livewire Then I followed the Flux UI ...
nik04r's user avatar
  • 11
2 votes
0 answers
59 views

Recently after some research I came up with a question: how to handle default / initial data population in a Laravel project which goes live: should it go into seeders or migrations? I've seen two ...
Dmytro Shved's user avatar
0 votes
1 answer
134 views

What happens to the model's eager-loaded relationship when the model is passed to another Job's dispatch method? Context: There is a job that retrieves all ongoing games and this job should create an ...
ssrsvn's user avatar
  • 33
0 votes
0 answers
70 views

I’m using Laravel12 with Forge and Cloudflare, and Amazon S3 for storage. Recently, I migrated to a new server, and since then, I’ve been receiving a 401 Unauthorized response with: { "...
Amirali's user avatar
  • 145
1 vote
0 answers
96 views

I am starting a new project, which is updating an old website, there is a requirement to move the old user accounts and user data over to the new system, when a user logs into the new site for the ...
Marsh Lane's user avatar
0 votes
0 answers
76 views

I have a PHP project deployed on shared hosting, and my files are structured like this: /public_html/ .htaccess /public/ index.php ... I want the site to be accessible from: ...
dg9495's user avatar
  • 13
0 votes
0 answers
35 views

i have a project for multi-users and one admin. my problem is when forget your password for guard admin. however the user web guard is work fine when i use forget your password. i use mailtrap as A ...
user2419119's user avatar
0 votes
1 answer
103 views

I would like to use the FlowBite library in my Laravel project, but I can't get it to work. However, as you can see in image, the file input is not displayed correctly. I followed to use this library ...
Ramil93's user avatar
  • 19
0 votes
1 answer
143 views

I'm using Filament 3.2 on Laravel 12, I just moved the project on a new server. On the old server this problem did not happen. That's the definition of the field Forms\Components\FileUpload::make('...
Tiziano Mischi's user avatar