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

silveira's avatar

Error After update to livewire 4 Livewire\Exceptions\RootTagMissingFromViewException vendor/livewire/livewire/src/Drawer/Utils.php:20

after i update my project to livewire 4 i am getting this error when i am trying run some action in my component. I am using filament v5 table and his action here is my code //... existing code ->recordActions([ Action::make('delete') ->label('Excluir') ->icon('heroicon-o-trash') -&

silveira's avatar
silveira's avatar DoubleClic...4mos agoLivewire
2
1
Last reply by DoubleClickDesignLtd 4mos ago
adamnet's avatar

Retrieve the Last Inserted ID

To get the last inserted id in a table (users) after saving the new record the code is: $lastInsertedId = $user->id; Since we talk about an internet application with many users, the above code will return the last record id for the user who registered or will return a global value for the users table?

adamnet's avatar
adamnet's avatar jlrdw4mos agoLaravel
15
1
Last reply by jlrdw 4mos ago
sean2025's avatar

New to Laravel - a quick question on workflow

I've started to look at some of the excellent courses here on creating Laravel applications. I know that course instructors may take an approach that differs in workflow to how an experienced developer would approach the same task on a project. Understandably, instructors want to isolate different parts for clarity, rather than do all together... like explaining Tailwind, Alpin

sean2025's avatar
sean2025's avatar DoubleClic...4mos agoLaravel
8
1
Last reply by DoubleClickDesignLtd 4mos ago
yonka's avatar

sell items as a set of items sometimes or each item as pcs

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as either a set sometimes or as individual item. A set contains specific items with specific Quantities and price that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc s

yonka's avatar
yonka's avatar jlrdw4mos agoLaravel
2
1
Last reply by jlrdw 4mos ago
yonka's avatar

sell items as a set of items ?

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as a set. A set contains specific items with specific Quantities that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc so if the buyer wants to buy AYZ 2sets, the buyer

yonka's avatar
yonka's avatar LaryAI4mos agoLaravel
1
1
Last reply by LaryAI 4mos ago
DevIP98's avatar

Submenu Laravel Starter Kit

how can I add a submenu in the Laravel Starter Kit template of laravel 12? AppSidebar.vue const mainNavItems: NavItem[] = [ { title: 'Dashboard', href: '/dashboard', icon: LayoutGrid, }, { title: 'Usuarios', href: route('users.index'), icon: Users, }, ];

DevIP98's avatar
DevIP98's avatar PatrickCan...4mos agoVue
3
1
Last reply by PatrickCaneloDigital 4mos ago
yonka's avatar

How to sell items as a set of items with specific name in Laravel

I build a database, after finished and start working, there is a problem arise from the seller, the seller is selling items, so the seller required to sell an items as a set. A set contains specific items with specific Quantities that are known for instance: a set has a name like AYZ and it has to have quantities like 1,2,..etc so if the buyer wants to buy AYZ 2sets, the buyer

yonka's avatar
yonka's avatar yonka4mos agoLaravel
2
1
Last reply by yonka 4mos ago
Chron's avatar

Is there a way to use web worker that is not in public?

I'm using Laravel v12, Vue3, inertiajs, Vite, Sail. I tried importing; import myWorker from "@/workers/worker?worker"; const testingFunc = () => { const worker = new myWorker(); } Where @ is resources/js/ but Firefox spits this message out: Security Error: Content at http://localhost/testing-worker may not load data from http://[::1]:5174/resources/js/workers/wo

Chron's avatar
Chron's avatar Chron4mos agoVue
0
1
minaremonshaker's avatar

Spatie Permissions + Laravel Policies: Best Practice for Permission/Role Controllers?

I'm building an admin panel using Spatie Laravel Permission and I'm confused about the "right way" to handle authorization in Permission/Role controllers. Option A (Direct Spatie check): if (!auth()->user()->hasPermissionTo('view_any_permission')) { abort(403); } Option B (Laravel Policy): Gate::authorize('viewAny', Permission::class); // Policy just wraps:

minaremonshaker's avatar
minaremonshaker's avatar Snapey4mos agoLaravel
5
80
Last reply by Snapey 4mos ago
ufodisko's avatar

Error "stty: invalid argument" while creating new laravel app or new filament panel

I'm on Kubuntu (25.10) and I just tried creating a new laravel app using the laravel installer laravel new myapp and got this error In Terminal.php line 114: stty: invalid argument '4500:5:f00bf:8a3b:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0' new [--dev] [--git] [--branch BRANCH] [--github [GITHUB]] [--organization ORGANIZATION] [--database DATAB

ufodisko's avatar
ufodisko's avatar iPy4mos agoLaravel
4
2
Last reply by iPy 4mos ago
alexteie's avatar

livewire 4 with components in laravel 12 packages

Hi with livewire 4 we can have single file in and component in Resources/View/components But i use my own packages and before i registerd them in the PackageService provider like this: Livewire::component('profile.information', \Packages\myPackage\Livewire\Profile\Information::class); with the new setup is there an easier way to load livewire components dynamic from my packages

alexteie's avatar
alexteie's avatar LaryAI4mos agoLaravel
3
9
Last reply by LaryAI 4mos ago
juranir's avatar

Socialite error with Google: Missing required parameter: code

Hello :D I'm trying to configure google authentication but I'm having a behavior that I'm not sure if it's ok. When I try to authenticate using a button that redirect user through Socialite (Socialite::driver('google')->redirect()) using stateless the process working well, but if I try to use Google button (like oneTap login) I have an exception: throw new InvalidStateExcept

juranir's avatar
juranir's avatar yusufhikam4mos agoLaravel
1
1
Last reply by yusufhikam 4mos ago
minaremonshaker's avatar

How should I authorize viewing a user’s tickets (collection) in an index endpoint?

In a Laravel API controller, I return a collection of tickets that belong to a specific user (“author”). The authenticated user may have multiple tickets, and I’m unsure what the best-practice authorization approach is for this index endpoint. Goal: Allow the request only if the authenticated user has the view_ticket permission and is the same user as the $author route paramete

minaremonshaker's avatar
minaremonshaker's avatar martinbean4mos agoLaravel
9
1
Last reply by martinbean 4mos ago
MaestroKira's avatar

Should I stop working through the 30 days to laravel course and start watching the new 2026 laravel from scratch course.

Hello! I am a beginner and I'm half way through the 30 days to laravel course. I started watching it on youtube, and now I see this new edition for 2026. Can somebody advise should I keep going with the 2024 edition or start from scratch with laravel from scratch. (no pun intended! :) )

MaestroKira's avatar
MaestroKira's avatar ryentzer4mos agoGeneral
9
4
Last reply by ryentzer 4mos ago
earmsby's avatar

Encrypt account's tax ID but show last 4 digits in view

I have a model Account with various fields: class Account extends Model implements Auditable { use HasFactory; use \OwenIt\Auditing\Auditable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'account_number', 'account_type', 'name_title', 'first_name', 'middle_n

earmsby's avatar
earmsby's avatar earmsby4mos agoLaravel
3
1
Last reply by earmsby 4mos ago
Cavalcantefilipe's avatar

I've been unemployed for 6 months

I'm a Brazilian developer and I've been working for over 6 years. Now I'm trying to enter the international market. I'm practicing my English and applying for some jobs, but the way interviews are conducted is very different from the rest of the world. Do you have any tips on how I can attract offers? My LinkedIn: https://www.linkedin.com/in/cavalcante-filipe/ My portfolio: htt

Cavalcantefilipe's avatar
Cavalcantefilipe's avatar jlrdw4mos agoLaravel
2
1
Last reply by jlrdw 4mos ago
hybride's avatar

batch jobs stil pending even with all jobs executed

Hi ! I just started to use Horizon with batch jobs. I have 15 batch jobs that have to be executed at night. I tried and I have many batch jobs still pending (at 80% or 90% even 98%) but there is no any pending jobs or failed jobs. What could be the problem ? Horizon config ? Redis config ? Here is my horizon configuration: <?php use Illuminate\Support\Str; return [ /*

hybride's avatar
hybride's avatar neoish4mos agoLaravel
3
2
Last reply by neoish 4mos ago
heylode's avatar

Watchlist doesn't include Larabits

I just added some Larabits to my Watchlist. But when I go to my Watchlist, only the courses are there, I don't see the Larabits. Is there a way to find these?

heylode's avatar
heylode's avatar heylode4mos agoFeedback
3
1
Last reply by heylode 4mos ago
SammyAttemptsCode's avatar

AIS refinement lists - and hiding them (Typesense adaptor)

Hi! I am struggling with making my AIS refinement lists collapse for better UX. However I have not yet found a way to do so without AIS re-initializing and "forgetting" the selected facets (filters). I am struggling with finding a working solution and I have not found any examples that are applicable to me. Below I have pasted a snippet of the code. I have a toggle, s

SammyAttemptsCode's avatar
SammyAttemptsCode's avatar SammyAttem...4mos agoVue
2
1
Last reply by SammyAttemptsCode 4mos ago
adamnet's avatar

Create tables transaction corresponding through a field

I have 4 tables posts, postas, postbs and postcs with the corresponding models Post, Posta, Postb and Postc. They will be related through the groupid field. So in the store method of the controller I have: // Create a new transaction $post = new Post; $post->field1 = $request->field1; $post->field2 = $request->field2; $post->save(); $post

adamnet's avatar
adamnet's avatar Glukinho4mos agoLaravel
5
1
Last reply by Glukinho 4mos ago
miwal's avatar

Should I change 'name' in composer.json, from 'laravel/laravel' to the name of my own project...?

A tiny detail, perhaps, but I'm trying to improve my grasp of composer and packages, and clarity of working. A new laravel install is a copy of laravel/laravel, i.e., the application skeleton. In composer.json of that package, 'name' is laravel/laravel, and 'description' is 'The Laravel Framework'. Since, in a new app, this skeleton is code I am about to modify into my own app,

miwal's avatar
miwal's avatar martinbean4mos agoLaravel
4
1
Last reply by martinbean 4mos ago
yumna12-coder's avatar

Casting

protected $casts = [ 'Is_trend' => 'boolean', ]; {{ $product->Is_trend }} Why does this print 0 instead of false? I thought that casting means converting the attribute’s type into another type. So if Is_trend is cast to boolean, why is 0 printed in the Blade view? Also, I’m trying to understand the real benefit of using $casts. What problem does casting actually solve in

yumna12-coder's avatar
yumna12-coder's avatar jlrdw4mos agoEloquent
9
50
Last reply by jlrdw 4mos ago
Chron's avatar

Session in Laravel to Vue

I'm using Laravel 12 w/ Vue3 and Inertiajs. Currently, I'm using setTimeout to show a message whenever the session is expiring, but I kinda doubting the process, and then I saw this post: https://stackoverflow.com/questions/8173580/setinterval-timing-slowly-drifts-away-from-staying-accurate Is there any other way to do this that works well with Vue? Maybe pass the remaining tim

Chron's avatar
Chron's avatar Chron4mos agoVue
0
1
earmsby's avatar

trouble with Filament exporter

I have created this exporter: namespace App\Filament\Exports; use App\Models\Publication; use Filament\Actions\Exports\ExportColumn; use Filament\Actions\Exports\Exporter; use Filament\Actions\Exports\Models\Export; use Illuminate\Support\Number; class PublicationExporter extends Exporter { protected static ?string $model = Publication::class; public static function

earmsby's avatar
earmsby's avatar earmsby4mos agoFilament
5
1
Last reply by earmsby 4mos ago
minaremonshaker's avatar

Authorization Exception Not Triggered When Admin Has No Tickets

In the controller method below, I'm experiencing an authorization issue. When an admin has no tickets, I receive an empty array [] instead of an authorization exception. However, when tickets exist for the admin, I correctly get the unauthorized exception. The expected behavior is that I should receive an authorization exception whenever I try to access admin tickets, regardles

minaremonshaker's avatar
minaremonshaker's avatar martinbean4mos agoLaravel
5
1
Last reply by martinbean 4mos 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.