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

VPS / Manual installation / Laravel, InertiaJS, VueJS

Hello, I have installed Ubuntu 24.04 on a virtual machine on VirtualBox to test an installation / deployment scenario. All works fine. So I have used the same scenario on a VPS prepared with Ubuntu 24.04. I have installed all what is needed, exactly like on the virtual machnine. All works fine except actions on the database. I explain : I can run a console command to seed the

vincent15000's avatar
vincent15000's avatar vincent150...1mo agoDevOps
2
1
Last reply by vincent15000 1mo ago
LailaIH's avatar

Best approach for handling large file uploads and ZIP generation in Laravel?

I’m building a Laravel 12 folder organizer where users may upload large folders (many files / large sizes), and I categorize files by extension and generate a ZIP for download. Current approach: Process everything in one request Loop through uploaded files once Add files directly from PHP temp upload paths into a ZIP using ZipArchive::addFile() For large folder uploads, what’s

LailaIH's avatar
LailaIH's avatar MuhammadAl...1mo agoGuides
5
1
Last reply by MuhammadAli2003 1mo ago
Max100's avatar

Starter kit - High CPU Fan - Fixed

While working on a new vue-starter-kit app, I noticed the cpu fan started running most of the time, and the task manager showed npm was constantly using around 15% of the cpu activity. The problem only occurred when using npm run dev. Using npm run build was fine. I never had this issue before using Breeze, so it seems connected to the starter kit. It may have to do with way

Max100's avatar
Max100's avatar Max1001mo agoGeneral
3
10
Last reply by Max100 1mo ago
Caio-Tera's avatar

Deep Dive: Why I chose Offloaded SSE (Mercure) over PHP-Native Streams or WebSockets

I recently made a decision to use FrankenPHP + Mercure for a real-time dashboard project (Laravel 12 + Octane), and I wanted to share the architectural reasoning behind it. I see a lot of people suggesting PHP-native SSE (like Laravel Wave) or defaulting to WebSockets (Reverb), but there is a critical distinction often missed regarding Connection Holding and Protocol Integratio

Caio-Tera's avatar
Caio-Tera's avatar NikSpyrato...1mo agoLaravel
1
47
Last reply by NikSpyratos 1mo ago
aarontharker's avatar

401 error on livewire uploads

When I try to upload a file on the production server the upload goes to 100% and then says error uploading. If I check the browser console it shows the upload failed because of a 401 error. I thought this may have been a signed url issue as the requests are going through Cloudflare, so I turned off Cloudflare proxying - no change. I set the following in bootstrap/app.php - n

aarontharker's avatar
aarontharker's avatar AzafoCossa1mo agoLivewire
8
1
Last reply by AzafoCossa 1mo ago
Respect's avatar

why wire wire-elements/livewire-strict package not working in livewire v4

hello friends thanks for helping why wire wire-elements/livewire-strict package not working in livewire v4 and is there alternative it's not throwing any exeption if try to update any property from client side (nothing happen like in v3) https://github.com/wire-elements/livewire-strict AppServiceProvider.php <?php namespace App\Providers; use WireElements\LivewireStr

Respect's avatar
Respect's avatar ghabriel251mo agoLivewire
3
1
Last reply by ghabriel25 1mo ago
vincent15000's avatar

InertiaJS and Security Headers ?

Hello, How is it possible to add CPS headers with InertiaJS ? I have tried this via a middleware. public function handle(Request $request, Closure $next): Response { $response = $next($request); $csp = implode('; ', [ "default-src 'self'", "img-src 'self' data:", "script-src 'self' 'unsafe-inline'", "st

vincent15000's avatar
vincent15000's avatar Jsanwo641mo agoInertia
12
4
Last reply by Jsanwo64 1mo ago
troelsjohnsen's avatar

How to sync data from (sports) API with local database

Hi Everybody I am currently working on integrating with a football API to provide data about matches, venues, competitions etc. The API will provide data for my own database, which can also be populated by manually entered data. I am struggling a bit with how to match data coming from the API with data in my own database? I need to be able to check whether the entity coming fro

troelsjohnsen's avatar
troelsjohnsen's avatar rogerwick1mo agoCode Review
7
1
Last reply by rogerwick 1mo ago
vincent15000's avatar

Prefix for session cookie

Hello, Laravel / InertiaJS / VueJS I have added a prefix to the session cookie and it's not possible to login anymore. 'cookie' => env( 'SESSION_COOKIE', '__Host-'.Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), Why ? Can you help me to keep this prefix ? What do you suggest me to check ? Thanks. V

vincent15000's avatar
vincent15000's avatar vincent150...1mo agoLaravel
13
12
Last reply by vincent15000 1mo ago
earmsby's avatar

Filament importer & skipping import columns

I have a filament importer for the model Account that looks like this: class AccountImporter extends Importer { protected static ?string $model = Account::class; public static function getColumns(): array { return [ ImportColumn::make('account_type') ->requiredMapping() ->rules(['required', 'max:255']),

earmsby's avatar
earmsby's avatar LaryAI1mo agoFilament
1
1
Last reply by LaryAI 1mo ago
earmsby's avatar

problem installing Filament

I just created a new Laravel app via the command laravel new smc-sandbox. All appeared to go well and I opened my new blank app in my IDE. Next step was to install Filament so I ran the command: composer require filament/filament:"^4.0" as I have done before. However, I got this error: Your requirements could not be resolved to an installable set of packages. Probl

earmsby's avatar
earmsby's avatar earmsby1mo agoFilament
4
2,426
Last reply by earmsby 1mo ago
vincent15000's avatar

No bootstrap.js file anymore in fresh laravel installations ?

Hello, I notice that there is no bootstrap.js file generated in fresh laravel installation any more. Furthermore the app.js is now totally empty. Do you know if there is any reasons to this ? V

vincent15000's avatar
vincent15000's avatar martinbean1mo agoLaravel
5
1
Last reply by martinbean 1mo ago
jswoolf01's avatar

Subtle bug in orWhere subquery?

I just ran across what looks like a subtle bug in how Eloquent transforms a query into its SQL equivalent. My application uses Laravel 8 (we haven't upgraded for reasons outside my control), so perhaps this is fixed in a newer version, but I'm stuck with what I have. This app tracks inventory (products) and each product has a list of "flags" associated with it in a o

jswoolf01's avatar
jswoolf01's avatar Glukinho1mo agoEloquent
4
1
Last reply by Glukinho 1mo ago
anjanesh's avatar

Exception on server but works fine on localhost

I just included @include('partials.homepage-schemas') in my index.blade.php and partials/homepage-schemas.blade.php contains this kind of text : <!-- Website Schema --> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "name": "xxx&q

anjanesh's avatar
anjanesh's avatar Glukinho1mo agoLaravel
2
1
Last reply by Glukinho 1mo ago
NotAGoodCoder's avatar

Multi-Server Deployments with Envoyer, Github Actions, and Vite

We are deploying our app via Envoyer currently, triggered by Github pushes. We are now to the point that I no longer want to run npm run build on each web server, as we have multiple servers and are running into issues of Vite SOMETIMES generating different hashes on different servers. This of course completely breaks the app, and a re-deploy fixes it. Instead, I want to run np

NotAGoodCoder's avatar
NotAGoodCoder's avatar twofish1mo agoDevOps
2
5
Last reply by twofish 1mo ago
vincent15000's avatar

Programmatically remove white background from photos and convert them to png ?

Hello, I need to upload some photo to a Laravel application. Is there any way to remove programmtically the white background around the subject in the center of the image ? Any way to do that with intervention/image ? Or perhaps you know another tool or an API ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar jxczlcxv1mo agoGeneral
7
2,279
Last reply by jxczlcxv 1mo ago
artisticre's avatar

Querying DB

I am not sure how to query the database based on what I want. If I had a table in my blade view I want to query the database by id as follows 9 10 11 12 5 6 7 8 1 2 3 4 But it is querying like 12 11 10 9 8 7 6 5 1 2 3 4 ``` ``` $completed = CompletedWeekend::orderBy('id', 'desc')->get(); ```

artisticre's avatar
artisticre's avatar ghabriel251mo agoLaravel
6
1
Last reply by ghabriel25 1mo ago
adamnet's avatar

How to access a private folder (Storage app/private/documents) from another Laravel project

I have two projects. In project 1 users can upload documents in a private storage folder named documents. In a project 2 another group of users must have access to the these documents which have been created in project 1. Is this possible and how? Any help will be much appreciated.

adamnet's avatar
adamnet's avatar DigitalArt...1mo agoLaravel
9
49
Last reply by DigitalArtisan 1mo ago
bobclewell's avatar

How do I make a custom local domain for Laravel Herd projects?

I've moved to Laravel Herd from an old school Vargrant / Homestead local dev environment. In my previous environment the domain was domain.local, but in Herd it's domain.com.test. How can I setup a redirect or customized Herd so that I can continue to use domain.local?

bobclewell's avatar
bobclewell's avatar toolborg1mo agoGeneral
21
2,162
Last reply by toolborg 1mo ago
toolborg's avatar

Solution to add a public domain to Laravel Herd

Introducing herdomain After an extensive search through many related threads on various forums—including this one on Laracasts—I decided to create a small, simple shell tool to add a public domain to a Laravel Herd installation. What It Does herdomain connects a public domain to an existing Herd project without changing Herd's global .test TLD and without renaming your project

toolborg's avatar
toolborg's avatar toolborg1mo agoDevOps
0
1
HartleySan's avatar

Is it possible to run code / DB queries in parallel in Laravel?

As the topic question says, is it possible to run code / DB queries in parallel in Laravel? I have a use case where I need to run several DB queries called from Laravel model methods to load a page, and the queries are not reliant on each other at all. As such, it'd be great if I could run the model method calls in parallel and speed up the loading of the page. Is this possible

HartleySan's avatar
HartleySan's avatar Kosadchiy1mo agoLaravel
27
1
Last reply by Kosadchiy 1mo ago
mottinger's avatar

Unable to create server with token

I'm having issues generating a token that can create servers via the Forge API. I am an admin in this organization and when I create a token through my profile I get an error indicating I need to update my billing plan to create more servers. We are on the business plan and I confirmed I have no problem creating additional servers through the admin panel. When I use tinker and

mottinger's avatar
mottinger's avatar mottinger1mo agoForge
2
1
Last reply by mottinger 1mo ago
juanborras's avatar

Filament Importing MorphTo relationship

Dear All, I have a Customer -> Address MorphTo relationship, any idea on how to build the importer? Thanks!

juanborras's avatar
juanborras's avatar juanborras1mo agoFilament
3
1
Last reply by juanborras 1mo ago
redroseamit's avatar

unable to connect private channel using laravel reverb and echo pusher

import 'bootstrap'; import axios from 'axios'; window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; import Pusher from 'pusher-js'; import 'bootstrap'; import axios from 'axios'; window.axios = axios; window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; import Pusher from 'pusher-js'; const BASE = 'http

redroseamit's avatar
redroseamit's avatar vincent150...1mo agoLaravel
1
1
Last reply by vincent15000 1mo ago
text-not-call's avatar

A few bugs related to auto switch to the next lesson

Hi guys, I've stumbled upon a few bugs when a lesson ends and tries to automatically switch to the next lesson. I have not found a form to submit bugs, so I'm trying to post here. Please point me in the right direction if there's a special place for it When a lesson finishes in fullscreen video mode, instead of switching it displays an error: "Invalid playback URL. The vi

text-not-call's avatar
text-not-call's avatar cupok1mo agoFeedback
3
1
Last reply by cupok 1mo 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.