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

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...6mos agoFeedback
7
1
Last reply by vincent15000 6mos 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...6mos agoTesting
1
2
Last reply by vincent15000 6mos 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 pgogy6mos agoLaravel
14
1
Last reply by pgogy 6mos 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...6mos agoVue
2
5
Last reply by vincent15000 6mos 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...6mos agoLaravel
3
1
Last reply by Shivamyadav 6mos 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...6mos 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...6mos agoLaravel
6
1
Last reply by vincent15000 6mos 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...6mos agoCode Review
4
1
Last reply by willvincent 6mos 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...6mos agoLaravel
72
1
Last reply by jamesautodude 6mos 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
1
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
1
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
1
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
1
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
1
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
1
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
1
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
1
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
160
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
1
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
1
Last reply by vincent15000 6mos ago
vincent15000's avatar

Multitenancy with only one database

Hello, I'm not sure what to do for a multitenancy application with one database. I know it exists some packages to do that, but I can also add my owner scope to do the same. Say the datas belong to a compay. Is it really useful to add the company_id field on all tables ? Here is an example. I have a users and a rules tables and a user_rule pivot table. Is it useful to add the c

vincent15000's avatar
vincent15000's avatar Snapey6mos agoLaravel
11
1
Last reply by Snapey 6mos ago
vincent15000's avatar

Users and trainers in the same table or in 2 different tables ?

Hello, An training organization works with several trainers. A trainer can work for several organizations. A trainer won't necessarily connect to the application and it's not a good idea to force a trainer to create an account on the application. But some trainers will create an account. So organization A and B can work with trainer T1 and will save their own trainer T1 model ?

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoDesign
13
1
Last reply by vincent15000 6mos ago
vincent15000's avatar

Stripe and taxes in Canada and USA

Hello, Can somebody help me understand all this ? Canada ca_bn Numéro BN canadien 123456789 Non Canada ca_gst_hst Numéro GST/HST canadien 123456789RT0002 Oui Canada ca_pst_bc Numéro PST canadien (Colombie-Britannique) PST-1234-5678 Non Canada ca_pst_mb Numéro PST canadien (Manitoba) 123456-7 Non Canada ca_pst_sk Numéro PST canadien (Saskatchewan) 1234567 Non Canada ca_qst Numér

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

Random Invalid Signature Exception when accessing to a signed URL

Hello, I have a strange problem with an Invalid Signature Exception when accessing to a signed URL. Sometimes I get this exception, sometimes I don't have it. What could generate this exception ? Here is the code that generates the signed URL. $encryptedEmail = Crypt::encryptString($request->email); $signedRoute = URL::signedRoute('events.results.guest', [ 'event' =>

vincent15000's avatar
vincent15000's avatar martinbean6mos agoLaravel
8
1
Last reply by martinbean 6mos ago
rishabhrao076's avatar

Getting remaining time from a RateLimiter Blocked request

My rateLimiter is something like this: RateLimiter::for('changes', function (Request $request) { return Limit::perMinutes(2, 1)->by($request->user()?->id)->response(function (Request $request, array $headers) { return response([ 'remaining' => RateLimiter::availableIn($request->user()->id),

rishabhrao076's avatar
rishabhrao076's avatar classicalg...6mos agoLaravel
1
1
Last reply by classicalguss 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.