Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

Shivamyadav's avatar

How to setup google drive api to upload files from laravel?

Currently I am using the service account and setup the testing route with the credentials and getting this error: Route::get('/drive-test', function () { $service = new \App\Services\GoogleDriveService(); $fileId = $service->upload( storage_path('1770402265.shivam-resume (1).pdf'), 'test.pdf' ); return $service->getFileUrl($fileId); });

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...4mos agoLaravel
9
2
Last reply by Shivamyadav 4mos ago
anilkumarthakur60's avatar

it possible to listen to a private channel without authentication? (Vue + Laravel Passport)

I’m working on a Vue.js frontend with a Laravel backend (API only, using Passport for authentication). I’m setting up real-time events using broadcasting with reverb, and I ran into a question regarding private channels. Normally, when you use private channels, Laravel expects the client to authenticate using /broadcasting/auth – and that’s working fine when my user is authenti

anilkumarthakur60's avatar
anilkumarthakur60's avatar Bwata4mos agoReverb
7
1
Last reply by Bwata 4mos ago
Abdulbarict's avatar

InvalidArgumentException: No hint path defined for [layouts] (works locally but fails on server)

I am getting this error on my production server, but the same code works perfectly on my local environment. Error: InvalidArgumentException No hint path defined for [layouts]. vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:111 Things I already tried php artisan view:clear php artisan cache:clear php artisan config:clear Any help would be appreciated.

Abdulbarict's avatar
Abdulbarict's avatar Jsanwo644mos agoLivewire
3
2
Last reply by Jsanwo64 4mos ago
jswoolf01's avatar

Query on parent-table condition or child-table condition

Situation: I have three tables: Product (inventory products), Flags (indicator flags that show 'something needs attention'), and Rules (rules for creating Flags). The relationship chain goes product->flags->rules. Each product can have many flags, while each flag belongs to one rule (but one rule can have many flags). We're transitioning to a new way of defining and han

jswoolf01's avatar
jswoolf01's avatar jswoolf014mos agoEloquent
3
1
Last reply by jswoolf01 4mos ago
Mikegk's avatar

Localized routes like .../en/

Hi guys, Im searching for a solution to enable routing like: MyDomain.com/en/home MyDomain.com/de/home I found this one here: https://laracasts.com/discuss/channels/laravel/how-to-prefixing-in-routes-for-localization But, there's a function called array_prepend, that I do not know or found in a current Laravel (8) Version (it's also not a native PHP function though). Thanks for

Mikegk's avatar
Mikegk's avatar Richard-pr...4mos agoLaravel
2
2
Last reply by Richard-pro 4mos ago
enadabuzaid's avatar

Laravel PDF (Spatie) + Puppeteer + Forge: “No usable sandbox” error in production

Hey folks 👋 I’m using the spatie/laravel-pdf package (which wraps Browsershot + Puppeteer) to generate PDFs in my Laravel 12 project. It works perfectly on my local machine, but when I deploy it to my Forge provisioned Ubuntu 24.04 server, I get this error when trying to generate a PDF: Error: Failed to launch the browser process! [xxxx/FATAL:zygote_host_impl_linux.cc(132)] No

enadabuzaid's avatar
enadabuzaid's avatar cmackinlay4mos agoLaravel
5
1
Last reply by cmackinlay 4mos ago
wordxpression's avatar

Working with multiple screens... and one in portrait mode

Just wanting to share an experience with my 'multiple screen working'. For already a few years, even do not remember how long, I work 'multiple screen' for both my video editing work (started with using MultiScreen for that) and my programming. And I would not go back to a single screen. I even have a foldable screen to use in combination with my laptop. Recently however one of

wordxpression's avatar
wordxpression's avatar Glukinho4mos agoGeneral
2
1
Last reply by Glukinho 4mos ago
earmsby's avatar

adding icon column to table widget

I have a widget with this code: namespace App\Filament\Widgets; use Filament\Actions\BulkActionGroup; use Filament\Support\Icons\Heroicon; use Filament\Tables\Columns\IconColumn; use Filament\Tables\Columns\TextColumn; use Filament\Tables\Table; use Filament\Widgets\TableWidget; use App\Models\Publication; class PendingPrintJobs extends TableWidget { protected static ?int

earmsby's avatar
earmsby's avatar earmsby4mos agoFilament
3
1
Last reply by earmsby 4mos ago
dan3460's avatar

Failed to Install PHP 8.4 on Ubuntu.

After several hours of trying to install php 8.4 on a new cloud instance of Ubuntu (Digital Ocean Droplet basic) i wasn't able to do so. I'm sure i cannot be the only one with this problem but could not find any article on Goggle. Trying to update apt with ppa:ondrej/php i come to a message: https://ppa.launchpadcontent.net/ondrej/php/ubuntu questing release' does not have a re

dan3460's avatar
dan3460's avatar kupce4mos agoServers
7
40
Last reply by kupce 4mos ago
vincent15000's avatar

Attacks on a personal project developed with Livewire

Hello, For some hours, a personal project is attacked and the logs give me this message. [2026-02-09 15:36:56] production.ERROR: Class "Laravel\Prompts\Terminal" not found {"exception":"[object] (Error(code: 0): Class \"Laravel\\Prompts\\Terminal\" not found at /homepages/2/d877403005/htdocs/ miam/vendor/livewire/livewire/src/Features/SupportM

vincent15000's avatar
vincent15000's avatar kupce4mos agoLaravel
27
25
Last reply by kupce 4mos ago
aidanwatt's avatar

Repeater simple richeditor bug

I've found a bug that seems to have been present since v4. In a form, if you add a repeater, then make it simple, and add a richeditor into it. Stick some data in, save it, then refresh the page, the data doesn't show. Looking in the DB, the data has saved as a flat array. Looking in the console, TipTap has an error and it looks like it's expecting the data to be keyed by what

aidanwatt's avatar
aidanwatt's avatar aidanwatt4mos agoFilament
2
1
Last reply by aidanwatt 4mos ago
vincent15000's avatar

Cookie consent

Hello, I'm used to use https://www.axept.io/ to handle cookies. But I just noticed that Spatie has also a package for cookie consent optimized for Laravel. https://github.com/spatie/laravel-cookie-consent And Spatie suggest to consider these alternatives if we need more configuration options. whitecube/laravel-cookie-consent statikbe/laravel-cookie-consent devrabiul/laravel-co

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoGeneral
3
10
Last reply by vincent15000 4mos ago
jaracas's avatar

Add logic to redirect to different pages on login in Laravel 12 using the built-in auth?

I'm struggling to figure out how to add logic to redirect users after they login to different pages depending on whether they have data in another table or not. I need to be able to redirect users after they login using the Laravel built-in auth (Vue starter kit not using WorkOS). Where exactly is the logic that determines where the user is sent after logging in? Right now no m

jaracas's avatar
jaracas's avatar maywz4mos agoLaravel
10
1
Last reply by maywz 4mos ago
BlendM's avatar

Job Position

Hi everyone! As much as random and unrelated this might be, I am still a member of the community and I’am seeking for a job position, currently! I am a very self driven full stack developer mainly using PhP/Laravel and Javascript/React and I have over 4 years of experience in real world companies, including an Ecommerce ecosystem. If anyone is in need of a good developer and a

BlendM's avatar
BlendM's avatar LaryAI4mos agoLaravel
1
3
Last reply by LaryAI 4mos ago
danichangt's avatar

The GET method is not supported for route livewire/update. Supported methods: POST.

I have an application with Laravel 10 and Livewire 3. I'm using Livewire pagination specifically links('pagination::tailwind'), I don´t knot why if I use "links()" all work fine excepet the background color of the current page. The bg only works if I use "links('pagination::tailwind'), but with this way I have this error when I open and close a modal window, I th

danichangt's avatar
danichangt's avatar brunopitho...4mos agoLivewire
12
1
Last reply by brunopithon8 4mos ago
earmsby's avatar

problem creating relation manager

I have this model: namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class AltWorkId extends Model { protected $fillable = [ 'work_id', 'alt_work_entity_id', 'alt_id_number' ]; public function work(): BelongsTo { return $this->belongsTo(Work::class); }

earmsby's avatar
earmsby's avatar earmsby4mos agoFilament
2
2
Last reply by earmsby 4mos ago
anjanesh's avatar

php artisan migrate attempted running from the first migration file instead of the last one(s)

When I ran php artisan migrate on my server why didn't it automatically run the last migration file ? Why did it try starting from the first one instead ? I checked the database - all but the last one were listed in the migrations table. INFO Running migrations. 2014_10_12_000000_create_users_table .........................................................................

anjanesh's avatar
anjanesh's avatar anjanesh4mos agoLaravel
5
1
Last reply by anjanesh 4mos ago
MThomas's avatar

Where to find the Building Progressive Web Apps Series?

I found this repository online, but could not find the corresponding laracasts series: https://github.com/laracasts/Building-Progressive-Web-Apps-with-Laravel Does anyone know where to find this?

MThomas's avatar
MThomas's avatar MThomas4mos agoGeneral
2
1
Last reply by MThomas 4mos ago
vincent15000's avatar

Fortify and password confirmation

Hello, I'm using Fortify to implement 2FA in an application. Activate or deactivate 2FA needs to type the account password to confirm the action. But => I click on the activation button, the password confirmation form is displayed and then, instead of being redirected to the next route with the QR code to confirm the 2FA configuration, I am redirected to the previous route a

vincent15000's avatar
vincent15000's avatar vincent150...4mos agoLaravel
5
1
Last reply by vincent15000 4mos ago
alexteie's avatar

livewire 4 mfc

Well please im little bit confused. when i create an sfc component i wont get the data correct in the blade file? what do i wrong? $this->countTotal wont be displayed? <div class="widgets-icons bg-light-success text-success ms-auto"> <i class="fa-sharp fa-thin fa-people-group"></i> &l

alexteie's avatar
alexteie's avatar tomcastill...4mos agoLivewire
2
1
Last reply by tomcastillo 4mos ago
foantje's avatar

livewire 404 update problem

I updated from livewire 2 -> 3. But i have a problem with livewire:update getting a 404 I have a simple component with 2 function to increase or decrease a number with wire:click. But when i click the button it opens a modal with 404 page. In my console it shows livewire:update 404. If i dd('test') on the mount() i do see the result... In the config i changed this: 'layout'

foantje's avatar
foantje's avatar tomcastill...4mos agoLivewire
4
1
Last reply by tomcastillo 4mos ago
laracoft's avatar

Laravel Vite 7 `npm run dev` High CPU load

When I run npm run dev, 2 of more cores shoot to 100% So, I made the file watching use polling every 10 seconds, but still 100% on 2 cores How do debug?

laracoft's avatar
laracoft's avatar Glukinho4mos agoVite
1
1
Last reply by Glukinho 4mos ago
ella-stinnes's avatar

Policy for belongsToMany Pivot Table

projects project_user users I want to create an authorization policy for the 'project_user' pivot table to define who is able to assign projects to a given user. At the moment, I don't have a ProjectUser model class. Will I need to create this for the ProjectUserPolicy?

ella-stinnes's avatar
ella-stinnes's avatar ella-stinn...4mos agoLaravel
9
1
Last reply by ella-stinnes 4mos ago
tariqbilal's avatar

Issue: Horizon Dashboard Not Updating in Real-Time - Requires Hard Reload

Description The Horizon dashboard is functioning but does not update in real-time. When jobs are processed or new jobs arrive, the dashboard does not reflect changes automatically. I have to perform a hard reload (Ctrl+Shift+R / Cmd+Shift+R) to see updated job counts, completed jobs, and current workload. The dashboard remains "Active" but static until manually refre

tariqbilal's avatar
tariqbilal's avatar tariqbilal4mos agoLaravel
0
1
FounderStartup's avatar

How to get a Seo friendly url for a search page

Can I get a SEO friendly url for a search result page ? For example if I search for properties , can I show a Seo friendly url ? Its something I search for mobiles on amazon and see a search result page with user " ......./mobiles-below-$200/

FounderStartup's avatar
FounderStartup's avatar JussiManni...4mos agoLaravel
3
2
Last reply by JussiMannisto 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.