Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

TerrePorter's avatar

@tailwindcss/vite and @vitejs/plugin-vue have error in phpstorm

The packages are underline in red and give an error: Vue: Cannot find module  @tailwindcss/vite  or its corresponding type declarations. There are types at 'c:/local_devel/Code/_play/rcvue.lan/node_modules/@tailwindcss/vite/dist/index.d.mts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundl

TerrePorter's avatar
TerrePorter's avatar LaryAI5mos agoVite
2
4
Last reply by LaryAI 5mos ago
SammyAttemptsCode's avatar

Results page not showing after hitting browser's "Back" button

Hi, First time I have to reach for the forums with an issue. AI assistance seems not to be able to find the issue either. TLDR: When navigating back from a Product page back to the Search Results page, the DOM doesn't update back to the Results page. Here's the context: (Inertia, vue) I have a very simple search results page scaffold to test. In there, I have a UL with LI that

SammyAttemptsCode's avatar
SammyAttemptsCode's avatar LaryAI5mos agoVue
6
4
Last reply by LaryAI 5mos ago
Kaluna's avatar

Laravel/Vue PWA, magic login link?

Hey everyone, I've scoured the internet trying to find a solution to this. So, I am creating a "magic login link" like so: $url = URL::temporarySignedRoute('login.token', now()->addHour(), ['user' => $user->id]);. This works fine on desktop—but once the PWA is downloaded, it doesn't work (it does on Chrome, locally mind). I've tried using protocol urls (web+m

Kaluna's avatar
Kaluna's avatar LaryAI5mos agoLaravel
2
1
Last reply by LaryAI 5mos ago
DigitalViking's avatar

Prevent race conditions and queue best practices

Hi Laracasts community, I’m currently facing an issue in our application for which I haven’t yet found a fully satisfying solution. Let me give you some context: I’m working on a multi-integration setup in the e-commerce space. The application connects our ERP system with multiple fulfillment partners. It handles various data flows (product data, stock levels, orders, and shipp

DigitalViking's avatar
DigitalViking's avatar LaryAI5mos agoLaravel
7
7
Last reply by LaryAI 5mos ago
earmsby's avatar

queue worker on production

I've been playing around with Filament Exporting & Importing and it's pretty nice. Of course it uses job batches in order to process the imports and exports. In my local development (with herd) I've just run php artisan queue:work before trying to import/export and that's fine. But I'm about to push this functionality up to the live production server (on Forge). Do I just r

earmsby's avatar
earmsby's avatar LaryAI5mos agoLaravel
5
197
Last reply by LaryAI 5mos ago
vincent15000's avatar

It's not possible to like a post / comment any more

Hello, It's not possible to like a post or a comment any more. V

vincent15000's avatar
vincent15000's avatar vincent150...5mos agoFeedback
7
2
Last reply by vincent15000 5mos ago
shez1983's avatar

dusk - tests failing

$browser ->fillForm($post, [$field]) ->screenshot('debug 1') ->press('@submit') ->waitFor('@' . $field . '-error', 10); ; so notice i have screenshot() there.. if i remove that this test will fail. it leads me to think that the delay is needed somehow.. funny thing is delay should be added AFTER i press submit to give it time to process and show error.. in other tes

shez1983's avatar
shez1983's avatar vincent150...5mos agoTesting
1
2
Last reply by vincent15000 5mos ago
pgogy's avatar

Trying to understand policies

Hello, trying to use policies properly and I'm following the guidance (https://laravel.com/docs/12.x/authorization) but it's not working for me. I'm new, and I'm guessing I've missed something big. So I have a File model, and I want users to be able to see only their own files. I have a FilePolicy in app\Policies so it should auto register. I have seen examples using AuthServic

pgogy's avatar
pgogy's avatar pgogy5mos agoLaravel
14
14
Last reply by pgogy 5mos ago
dmytroshved's avatar

VueJS 3: Storing Token & User. Code Analyzing

Hey everyone I am analyzing the code of RealWorld Example (Vue 3 + Pinia) and I'm trying to understand the author's logic for storing the user and token. Below is a summary of what I observed. 1. User storage in localStorage The app uses a custom Storage class to store the user object (from what I understood including the token) in localStorage: // src/utils/storage.ts export

dmytroshved's avatar
dmytroshved's avatar vincent150...5mos agoVue
2
2
Last reply by vincent15000 5mos ago
Shivamyadav's avatar

Input component is not working on the production 😕

I'm getting this error on every form except the login form (login and register form is working Even they are also using the same input component). Unable to locate a class or view for component [forms.input-group].

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...5mos agoLaravel
3
2
Last reply by Shivamyadav 5mos ago
Davexdiamond's avatar

Livewire wire:navigate issue

this problem is based on my DOM elements and my javascript when ever i click on an element that has the wire:navigate attribute the SPA works but not all my content gets rendered in my webpage but if i inspect it, those element are present in the code but aren't showing and i keep getting this error from my javascript script file telling me that i am redeclaring and element aga

Davexdiamond's avatar
Davexdiamond's avatar Davexdiamo...5mos agoLaravel
2
1
oldgit's avatar

Validation - unique within subset of records

I'm trying to validate a piece of data against a subset of records in a table. The big picture is that I have a table of competiton entries for multiple competitions. Each entry must have a unique number (to be displayed by the entrant) for obvious reasons. The Entry table includes a field - competitionID - which links the Entry to the Competition. I can easily use the 'unique'

oldgit's avatar
oldgit's avatar vincent150...5mos agoLaravel
6
1
Last reply by vincent15000 5mos ago
superbeaver's avatar

Getting all Sessions for given user from Redis

When using Redis as Session driver, how can I list all Sessions for a given User? With database it is easy, I know that. I'm trying to do that with Redis.

superbeaver's avatar
superbeaver's avatar willvincen...5mos agoCode Review
4
2
Last reply by willvincent 5mos ago
stueynet's avatar

Encrypting model data

I am working on a new project that stores medical information. For security I thought it would be cool to store all the personal data in the database with encryption. Is there any specific workflow for doing this. Essentially setting encryption on certain Model fields and having everything just work. Thinking about it, I feel like its not so simple but I thought I would throw i

stueynet's avatar
stueynet's avatar jamesautod...5mos agoLaravel
72
106
Last reply by jamesautodude 5mos ago
vincent15000's avatar

$this->laravel is null after packages upgrade

Hello, I wanted to upgrade Pest from v3 to v4. So I have remove both pest packages, then reinstalled them. "pestphp/pest": "^3.8", "pestphp/pest-plugin-laravel": "^3.8", And now I get this error while running composer or artisan commands. Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump >

vincent15000's avatar
vincent15000's avatar LaryAI6mos agoLaravel
2
3
Last reply by LaryAI 6mos ago
minaremonshaker's avatar

Question About JSON:API Payload Complexity

Hi, I’m currently taking a course on Laracasts with Jeremy, where he builds an API using the token-based authentication approach. In the course, he structures the response payload following the JSON:API specification. However, I find this format quite complex—especially when creating, updating, or patching resources. Is there a recommended or simpler approach for structuring AP

minaremonshaker's avatar
minaremonshaker's avatar LaryAI6mos agoLaravel
12
20
Last reply by LaryAI 6mos ago
vincent15000's avatar

Help to understand why an event seems not to be dispatched

Hello, I have a function in which I dispatch an event. I have created 2 identical events : the first one was created some weeks ago and the second one has been created yesterday. These events are dispatched to a websocket and I listen for them in a pinia store in the front (VueJS). To check if the listener works, I have a simple console.log('ok');. If I use the first event, I s

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoLaravel
2
3
Last reply by vincent15000 6mos ago
vincent15000's avatar

Customize the broadcasted data according to users' rights

Hello, I have one event which has to be broadcasted to several users, but not with the same data. Example with an event sending some data related to an endpoint. user A : all the endpoint properties user B : only the endpoint id // event EndpointUpdated public function broadcastOn(): array { $channels = []; foreach ($this->users as $user) { $channels[

vincent15000's avatar
vincent15000's avatar s4muel6mos agoLaravel
3
2
Last reply by s4muel 6mos ago
vincent15000's avatar

In which cases could the DOM not be updated whereas the datas are updated ?

Hello, It's a Laravel 11 / VueJS 3 application. I have explored my own code, all datas are reactive (ref, computed). The datas are stored in a pinia store and initially loaded via an API request to the backend. When datas are updated in the database, the backend triggers an event to the websocket and I listen to these events in the frontend. The websocket sends only the updated

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoVue
7
3
Last reply by vincent15000 6mos ago
vincent15000's avatar

Update JSON column for nested properties

Hello, I have a question about this documentation. https://laravel.com/docs/11.x/queries#updating-json-columns DB::table('users') ->where('id', 1) ->update(['options->enabled' => true]); But I'd like to update a deeper property in the JSON field. DB::table('users') ->where('id', 1) ->update(['options->visible->enabled' => true]); I have tested,

vincent15000's avatar
vincent15000's avatar Tray26mos agoEloquent
8
8
Last reply by Tray2 6mos ago
vincent15000's avatar

Write a form to obtain the structure for sync with pivot values

Hello, I'd like to obtain this structure. 'payments' => [ 2 => [ 'amount' => 85, ], 5 => [ 'amount' => 10, ], ] I have this code for the form. <div class="flex flex-col gap-4"> @foreach ($payments as $index => $payment) <div class="flex items-center"> <input type="hidden" name="

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoCode Review
5
2
Last reply by vincent15000 6mos ago
vincent15000's avatar

What's better between prepareForValidation() vs model Observer to add a slug ?

Hello, I have seen an example in the documentation where the prepareForValidation() function is used to add a slug to a model. https://laravel.com/docs/11.x/validation#preparing-input-for-validation I usually do that inside the creating() function in the model observer. Is there a best pratice between both ones ? According to me, it is not the role of a form request to add a sl

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoLaravel
3
4
Last reply by vincent15000 6mos ago
vincent15000's avatar

Unordered list with quill editor ?

Hello, I discover Quill editor which seems to be great. I notice that both unordered and ordered lists are generated with an <ol> tag. How is it possible to force using <ul> for an unordered list ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar LaryAI6mos agoGeneral
2
341
Last reply by LaryAI 6mos ago
vincent15000's avatar

Looking for a clean way to add a referer link

Hello, I have this situation in a full livewire application. I can call a create/edit form from 3 different pages. If I click on the submit button to edit an existing model, I want to redirect to the referer page. I have checked in the request, there is the referer link. But => if the form has errors, the referer becomes the form. What is the best way to add the referer ? Ad

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoLivewire
9
2
Last reply by vincent15000 6mos ago
vincent15000's avatar

CSS to design a calendar view

Hello, Hmmmm ... Never worked on a calendar, so I want to design a calendar in a personal project (instead of using for example fullcalendar). I want to have differents views : day, week, month, year, planning (like in the Google calendar). To display a month, it's quite easy with a CSS grid with 7 columns where I put all days of the month. But to display a week, I need to disp

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoGeneral
11
3
Last reply by vincent15000 6mos ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.