212,610 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
22
views
Efficiently append value from parent table to each child record?
I have the following tables:
days with columns: id, trip_id, hex_color
stops with columns: id, trip_id, trip_day_id
I have the following query:
$days = Day::where('trip_id', $tripId)
->with([
...
0
votes
0
answers
22
views
Filament RelationManager: Dynamic Select fields work in UI but fail validation / Livewire entangle issues in slot-based dynamic schema
I’m working with Filament (v4) and a RelationManager that has a fairly complex dynamic form.
Context
Resource: Order
RelationManager: OrderItemsRelationManager
The form dynamically builds slot ...
-1
votes
0
answers
43
views
ERROR 1364 (HY000): Field 'id' doesn't have a default value ; while everything normal before [closed]
My SQL suddenly throws:
ERROR 1364 (HY000): Field 'id' doesn't have a default value when inserting data
Everything is normal before my auto increment is at 516822 so it far from the limit, before ...
Best practices
0
votes
1
replies
32
views
Best way to minify/compact json response in Laravel
What would be the best way to minify or compact the json response returned by either response()->json() or `ApiResources` in Laravel.
Would middleware be the only option?
Advice
0
votes
1
replies
50
views
How to interpolate attribute names into translations with i18next?
Laravel has localization for authorization, validation and other types of messages. validation.php returns an array which contains error messages for validation rules. It can also have custom ...
0
votes
2
answers
51
views
Notifications in Filament v3 Do Not Work When There Are Errors in an Import Action in production environment
I have an application that uses laravel 11 and filament v3 where I have an import providers action:
<?php declare(strict_types=1);
namespace App\Filament\Imports;
use App\Models\Provider;
use ...
0
votes
0
answers
42
views
Laravel Multi database connection on Laravel Forge Server [closed]
I provisioned a server on Laravel Forge, where a Laravel application resides. On that same server, I have created 6 databases to be used by the Laravel app.
The issue now is that Laravel is unable to ...
2
votes
1
answer
59
views
Vite build tool will not recognize and compile changes to source files unless I restart the Vite server
I am running an Ubuntu VM on a MacBook. The server is Nginx, the framework is Laravel, Vite is the default engine for front end development. I have configured the Vite server and it starts up, '...
-3
votes
0
answers
58
views
Roles and permissions in laravel [closed]
this is my first time coding roles and permissions, please review my code . :)
I mostly followed a guide on Spatie roles and permissions but after the tutorial I did give it to ChatGPT for some review ...
-2
votes
1
answer
102
views
Android Emulator cannot access local Laravel API – ERR_NAME_NOT_RESOLVED [closed]
I am trying to run a mobile app (Android Emulator) with a local Laravel backend, but the emulator is unable to access my local API.
Setup Details
Backend: Laravel (running locally)
Frontend: Mobile ...
2
votes
1
answer
106
views
Laravel policies return 403
Laravel keeps returning a 403 error everytime I try to edit or delete an entry.
Here's what I've done :
Controller
public function __construct()
{
$this->middleware('auth')->except(['...
2
votes
1
answer
72
views
Laravel with Vite: Running dev server in an iFrame
I'm developing a Laravel app that runs inside an iFrame. While everything works fine with production builds (npm run build), I'm unable to get Vite working in development mode, which makes the ...
Tooling
0
votes
2
replies
61
views
VUE-PHP navigation in PHPStorm
From PHP you can navigate to VUE component from Inertia call. I have paid Laravel Idea plugin installed.
But I can not navigate from VUE component to PHP controller or it's method.
In VUE file I have ...
4
votes
1
answer
69
views
How to fix Livewire ComponentNotFoundException on wire:click events?
I have a Livewire component where $this->getName() works correctly and displays user name, but wire:click="logout" triggers a ComponentNotFoundException. The error message shows: Unable ...
1
vote
2
answers
66
views
How can I translate page slugs in routes
I want translate page slugs in Laravel routes.
My code is something like this:
<a href="{{route('pages.get',['slug' => $page->slug])}}" target="">{{__($page->title)}}...