212,627 questions
Advice
0
votes
0
replies
31
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
1
answer
41
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
39
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
56
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
50
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
97
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
102
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
63
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
66
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
65
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)}}...
1
vote
0
answers
89
views
Prefix everything in Laravel 12
I have a small problem with Laravel 12 where I cannot find a simple solution. The problem is simple: I need to prefix EVERYTHING.
Reason for this: I have several Laravel apps which are all running ...
0
votes
0
answers
61
views
Vite build only transforming 53 modules instead of all Vue pages in Laravel Inertia.js SSR project
Problem
I'm working on a Laravel 12 project with Inertia.js, Vue 3, TypeScript, and SSR. When I run npm run build:ssr, Vite only transforms 53 modules and produces a 36KB JavaScript file, even though ...
0
votes
0
answers
69
views
Avoid evaluating components $slot when it's not rendered
I have a laravel/blade component like this
$props(['condition'])
@if ($condition)
error
@else
{{ $slot }}
@endif
And i want to use it like this:
@php
$arr = [];
@endphp
<x-my-component ...
0
votes
1
answer
60
views
Add Nullable Data When Update in Dynamic Form Laravel 11
I've made the store data part in this question, and it works well using the first answer from user N69S. But now I tried to implement the same code in the update data part (to add new data when ...