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

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
38
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
46
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
2
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
1
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
4
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
3
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
53
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
10
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
vincent15000's avatar

Services used inside controllers

Hello, What's the bests way of using services inside controller ? private $eventService; private $locationService; private $typeService; public function __construct() { $this->eventService = new EventService; $this->locationService = new LocationService; $this->typeService = new TypeService; } This way the services ar

vincent15000's avatar
vincent15000's avatar JussiManni...4mos agoLaravel
4
1
Last reply by JussiMannisto 4mos ago
Cavalcantefilipe's avatar

Best place to put a Laravel into production.

I need to publish a Laravel application that I believe will have peaks of up to 200 users and many database calls. What is the best place to deploy it considering cost and performance? AWS? It's for a mobile app.

Cavalcantefilipe's avatar
Cavalcantefilipe's avatar DigitalArt...4mos agoLaravel
4
2,517
Last reply by DigitalArtisan 4mos ago
wonder95's avatar

Unable to use Google font in Vue/Inertia/Tailwind app

In my Vue3/Interia/Laravel/Tailwind v4 app, I need to make some modifications to match another site, and part of that is implementing the Hind Vadadora font. In order to make it more performant, my idea was to import the font and just run it locally, so I installed it via NPM npm install @fontsource/hind/vadadora added these lines to /resources/css/app.css @config "../..

wonder95's avatar
wonder95's avatar ian_h4mos agoInertia
3
18
Last reply by ian_h 4mos ago
forkingbeardman's avatar

React + InertiaJS InfiniteScroll Issue

Hey so i've been facing this weird issue, using Inertia's InfiniteScroll component and Inertia::scroll() method. On every odd direct visit to the page it only loads first page and nothing else and on every even visit it works. To make sure that nothing on my page was causing it i set up a test route with very simple Test page and still same results. here's the code for my test

forkingbeardman's avatar
forkingbeardman's avatar forkingbea...4mos agoInertia
2
1
Last reply by forkingbeardman 4mos ago
jswoolf01's avatar

Database conflict when running two Laravel apps on same server

I have two Laravel apps that I'm trying to get to work together on a local XAMPP server. Specifically, I'm testing a reporting feature on application 1 (a retail-sales-tracking app) that requests some data from application 2 (an inventory-tracking app). In production the two run on different servers, but this is my local test machine so they're both running on the same server

jswoolf01's avatar
jswoolf01's avatar Glukinho4mos agoLaravel
8
1
Last reply by Glukinho 4mos ago
trondhuso's avatar

Unable to call component method. Public method [toJSON] not found on component

In my web application I have a few dropdowns where a user can click on different checkboxes. When that happens, the result table is being re-rendered. Seconds later I get the modal telling me: Unable to call component method. Public method [toJSON] not found on component And then I see this in the body in the laravel debug-modal. I upgraded from LW2 to LW3, so that could be a r

trondhuso's avatar
trondhuso's avatar sajad234mos agoLivewire
5
1
Last reply by sajad23 4mos ago
Shivamyadav's avatar

My notification reply does not updates the UI?

I have a notification show page, inside it i have a form to reply only 1 time. After a reply to that particular mail my controller return back and my show page props and ui did not gets updated. my controller code public function store(AdminReplyRequest $request, Notification $notification) { // protecting form the sending the request if already 1 reply exists

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...4mos agoInertia
0
1
NextBestThing's avatar

Update on the Laravel Forge SDK 4.x

Hi! First of all. I really like Forge and the way its going. Especially with the feature drop of October last year. However I'm using the Forge SDK for automation and doesn't seem to support 4.x yet. Is there any update regarding the upgrade from 3.x to 4.x? The documentation tells you that we have 'till March of this year to upgrade but the SDK seems to be outdated for a while

NextBestThing's avatar
NextBestThing's avatar NextBestTh...4mos agoForge
1
2
Last reply by NextBestThing 4mos ago
vincent15000's avatar

Notifications available for several users

Hello, By default a notification is attached to a specific user. What could be the solution if I need that a notification is available for several users (for example the managers can see the notifications) and once a manager has handled the notification, it is destroyed from the database, so that other managers don't see it anymore. Is it a solution by using the standard Larave

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoLaravel
8
1
Last reply by vincent15000 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.