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

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 Snapey5mos agoLaravel
11
2
Last reply by Snapey 5mos 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...5mos agoDesign
13
1
Last reply by vincent15000 5mos 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...5mos agoLaravel
3
137
Last reply by vincent15000 5mos 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 martinbean5mos agoLaravel
8
5
Last reply by martinbean 5mos 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...5mos agoLaravel
1
1
Last reply by classicalguss 5mos ago
june23's avatar

Is it required to code an entire module like a basic "Instant Messenger" for example in coding interviews as quick and accurate as possible?

I have been wondering, I am sure for MAANG companies there needs to be "perfection" when it comes to coding rounds like memorizing an entire frontend or backend frameworks like Laravel so that it can be possible to code an entire module or component like a "Shopping Cart" for an E-Commerce website with out having to look into the documentation or Stackoverfl

june23's avatar
june23's avatar Snapey5mos agoGeneral
10
3
Last reply by Snapey 5mos ago
JussiMannisto's avatar

PhpStorm not recognizing built-in React props

I'm having an issue with .tsx React components in PhpStorm 2025.2.5. When I define component props explicitly, the IDE doesn't recognize special React props such as key and reports them as invalid. Take this mock example of a Groups component that renders a list of Group components: // Groups.tsx: import React from 'react'; import type { ContactGroup } from '@/Types/ContactGrou

JussiMannisto's avatar
JussiMannisto's avatar JussiManni...5mos agoReact
2
1
Last reply by JussiMannisto 5mos ago
valentin_vranic's avatar

config/database.php Laravel11 -> Laravel12

I have an application, where I connect to multiple db-s. I have In 8 connections 3 where read & write credentials are separately defined, and the rest where only the read were defined and write was left empty. 'mysql' => [ 'driver' => 'mysql', 'port' => env('DB_PORT', 3306), 'database' => env('DB_MYSQL_DATABASE'), 'read' => [ 'host' =&

valentin_vranic's avatar
valentin_vranic's avatar LaryAI5mos agoLaravel
4
109
Last reply by LaryAI 5mos ago
tomasnorre's avatar

When do experience points update?

I have currently 283,360 XPs, which I have had for quite a while. According to my profile, I have to be awarded +100 for some forum posts, but the points haven't been update lately. Is there a Work in progress bug, or something I'm not aware of? I do know that there has been changes regarding XPs for watching videos. I'm not aware of any changes in the regards of forum posts, a

tomasnorre's avatar
tomasnorre's avatar LaryAI5mos agoFeedback
4
1
Last reply by LaryAI 5mos ago
tomasnorre's avatar

Static Site Forms?

Hi, I'm looking for suggestions on a Form service for a static website. I will not expect many mails from the form. It has to be fairly cheap, hosted in Europe and be GPDR conforming. Any suggestions would be appreciated. Thanks.

tomasnorre's avatar
tomasnorre's avatar LaryAI5mos agoTips
4
16
Last reply by LaryAI 5mos ago
asifrumani's avatar

Pre-populate parent ID in select in RelationManager when creating record

I am not very well versed with Filament, just the basic stuff. I am using Filament v4. I have models Customer and Deal. Customer model has HasMany relationship with Deals and Deal model has BelongsTo relationship with Customer. I have DealRelationManager in CustomerResource which lists all Deals for a customer when in View or Edit mode. I am trying to work out a way to automati

asifrumani's avatar
asifrumani's avatar LaryAI5mos agoFilament
2
1
Last reply by LaryAI 5mos ago
xXSamXx's avatar

SQLSTATE[28000] [1045] Access denied for user, but credentials are correct (shared hosting)

Hi everyone, I’m stuck with a persistent SQLSTATE[HY000] [1045] error on a shared hosting environment (A2Hosting), and after 2 days of debugging I still can’t figure it out. Here is the exact Laravel error: SQLSTATE[28000] [1045] Access denied for user 'user-db'@'localhost' (using password: YES) What’s strange is that the same database name, user, password and host work fine i

xXSamXx's avatar
xXSamXx's avatar LaryAI5mos agoLaravel
16
22
Last reply by LaryAI 5mos ago
pier67's avatar

Problem "ReflectionException" class does not exist

Im getting this error and i have previously defined the class on the controller and also on the http requests and i'm still getting this error, i really don't kow what do to, im stuck

pier67's avatar
pier67's avatar erickBanda6mos agoLaravel
25
1
Last reply by erickBanda 6mos ago
Respect's avatar

Does to use livewire 4 now for real world project or go with livewire 3

hello Does to use livewire 4 now for real world project or go with livewire 3 in know it's stell in beta . but will starting new project but need features of livewire v4 like blaze and preformance and structure

Respect's avatar
Respect's avatar Respect6mos agoLivewire
2
10
Last reply by Respect 6mos ago
kevinoneil's avatar

Carbon Difference for Humans

Anyone having any issues with carbon not rounding up when adding to dates? I've tried the ceil(). Examples: // 11 months from now Carbon::parse('2019-08-01 12:00:00')->addYear()->diffForHumans(); // 5 months from now Carbon::parse('2019-08-01 12:00:00')->addMonths(6)->diffForHumans(); // 6 days from now Carbon::parse('2019-08-01 12:00:00')->addDays(7)->diffFor

kevinoneil's avatar
kevinoneil's avatar BHiko6mos agoGeneral
8
1
Last reply by BHiko 6mos ago
Chron's avatar

How to add foreign key in a table that is already created in production?

I want to add a foreign key in a table that already has data and is created. I get this error when I try to migrate the new migration file. Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails. //add_driving_id_as_foreign_key_to_persons_table.php return new class extends Migration { /** * Run the migrations. */

Chron's avatar
Chron's avatar Tray26mos agoGeneral
9
1
Last reply by Tray2 6mos ago
triadi's avatar

Error after Updating Laravel and laravel/boost — Need Help

Hello everyone, I need some help. After updating my Laravel version and the laravel/boost package, I encountered some strange errors that I’ve never seen before. Environment Laravel: upgraded from 10.48.16 → 10.49.0 laravel/boost: upgraded from 1.1.5 → 1.8.4 Editor: Visual Studio Code Issue 1 — Before updating boost While still using laravel/boost version 1.1.5, I started get

triadi's avatar
triadi's avatar triadi6mos agoLaravel
0
1
Developer654079525's avatar

PDF library

We want to export parts of our website into a downloadable, self-contained PDF file with the TOC. It will be generated from a separate, hidden layer of our app that has custom CSS. So, it would be nice, if the rendered PDF somewhat closely matches the CSS HTML look. Which library that plays nicely with Laravel 12.* would you recommend (for a commercial use)?

Developer654079525's avatar
Developer654079525's avatar Snapey6mos agoLaravel
3
7
Last reply by Snapey 6mos ago
petervandijck's avatar

Can't install Vapor CLI

Working on a new laptop, Macbook. I am working with Laravel. I have a Vapor project, that I was coding on another laptop, all worked well. (The other laptop broke). Now on this new laptop, I can't seem to install vapor CLI? I installed vapor CLI globally: composer global require laravel/vapor-cli --update-with-dependencies That worked well apparently. But then I can't use vapo

petervandijck's avatar
petervandijck's avatar DigitalArt...6mos agoVapor
2
1
Last reply by DigitalArtisan 6mos ago
henryoladj's avatar

Meta Tags and other Seo Features

I want to add meta tags like Open Graph taking the post title and link and Twitter Card to my laravel project, does anyone have idea on how i can?

henryoladj's avatar
henryoladj's avatar dipeshkhan...6mos agoLaravel
6
2
Last reply by dipeshkhanal79 6mos ago
jk's avatar

How to update props data on notification broadcast without page refresh? Vue3,Inertia

The csvs.index page displays a table of csvs with path, completed status, and download link. Csvs can have their export completed with all attributes or export incomplete with none of the attributes. When a Notification broadcast is received, the payload contains a csv's attributes needed to update an incomplete csv. The problem I have is understanding how to update my csvs

jk's avatar
jk's avatar Shivamyada...6mos agoInertia
4
1
Last reply by Shivamyadav 6mos ago
n0tttrui's avatar

Select movies where category...

I have rather a category system: #Movie.php (Model) <?php namespace App; use Illuminate\Database\Eloquent\Model; class Movie extends Model { /** **/ public function categories() { return $this->belongsToMany(Category::class); } public function thumbnail() { return url(); } public function comments() { return $this-

n0tttrui's avatar
n0tttrui's avatar bobbyengel6mos agoEloquent
25
1
Last reply by bobbyengel 6mos ago
abdulwolfiz's avatar

Serving Static Assets in Dockerized Laravel Environments

Hey team, I wanted to bring up an interesting point about serving static assets in our Dockerized Laravel setup. Currently, we have the public folder inside our backend container, but Nginx on the host cannot directly access it. This has caused issues where assets like /logo.png work locally in Docker Desktop but fail in production unless accessed via /public/logo.png or throug

abdulwolfiz's avatar
abdulwolfiz's avatar ian_h6mos agoLaravel
5
4
Last reply by ian_h 6mos ago
Chron's avatar

How to append data on request array

I tried doing this // if there are no `available` keys found in `cars` request, set the first item to true if(!collect($request->input('cars'))->contains('available', true)) { $request['cars'][0] = ['available'=>true]; } But I'm getting Indirect modification of overloaded element.... I can use collect(...)->transform(...) but is there a shorter and faster way of

Chron's avatar
Chron's avatar Glukinho6mos agoLaravel
3
1
Last reply by Glukinho 6mos ago
Ligonsker's avatar

On Laravel 12 + Livewire starter kit - where do I change where users are redirected to if they're authenticated and trying to access guest routes?

Hi, Right now, when a logged in user is trying to go to /register while he's logged it, it redirects to the /dashboard. I couldn't find where to change that. On config/fortify.php you have the Home Path: /* |-------------------------------------------------------------------------- | Home Path |--------------------------------------------------------------------

Ligonsker's avatar
Ligonsker's avatar valentin_v...6mos agoGeneral
1
1
Last reply by valentin_vranic 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.