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

KrasMan's avatar

Problems with middleware and X-AUTH-ACCESS-TOKEN request header

I have a 3rd party api that I need to interact with that requires an access token in the request header. Using the guzzle client for the interface it's working fine by doing this directly, e.g., return http::withHeader("X-AUTH-ACCESS-TOKEN", $this->getXYZApiKey()) ->post( ... As my use expands on using this api, I figured I'd create a middleware rou

KrasMan's avatar
KrasMan's avatar KrasMan3mos agoLaravel
2
1
Last reply by KrasMan 3mos ago
DanielTCGomes's avatar

Exam Editor Not Loading After Lessons

The editor to take the exams after the lessons is not loading and gets stuck in an infinite loading screen.

DanielTCGomes's avatar
DanielTCGomes's avatar DanielTCGo...3mos agoFeedback
2
1
Last reply by DanielTCGomes 3mos ago
valentin_vranic's avatar

Laravel external MCP tool listing

Hi all! I'm facing an issue for a while. Firstly it was the lack of understanding of MCP-s, secondly the understanding of capabilities of Laravel and MCP-s. So as I know, the MCP-s are not kind of REST endpoint(s) as I thought in the beginning, but an SSE (server-sent-events). Which is a new for me. So my starting approach was to just send a tools-list method to the url, but la

valentin_vranic's avatar
valentin_vranic's avatar valentin_v...3mos agoLaravel
2
9
Last reply by valentin_vranic 3mos ago
yonka's avatar

Read All TakenInventoryInfo and Paginate it

I want to read TakenInventoryInfo and Paginate all by also reading StoreFrom from TakenInventories. This is my database design 1.TakenInventoryInfo class TakenInventoryInfo extends Model { use HasFactory, CreatedUpdatedBy, softDeletes; protected $fillable = ['tracking_no','taken_date','store_id','reference','description','approve_status','user_id']; public functio

yonka's avatar
yonka's avatar LaryAI3mos agoLaravel
1
1
Last reply by LaryAI 3mos ago
potterpg's avatar

Laravel 12 Cors- not working for me?

Apparently CORS just works with Laravel 12, but it doesn't work for me? Starting from scratch, install/api config:publish cors 'paths' => ['api/*', 'sanctum/csrf-cookie'], 'allowed_methods' => ['*'], 'allowed_origins' => ['localhost:3000', '127.0.0.1:3000'], 'allowed_origins_patterns' => [], 'allowed_headers' => ['*'], 'exposed_headers' => [], 'max_age

potterpg's avatar
potterpg's avatar Sergiu173mos agoEloquent
1
1
Last reply by Sergiu17 3mos ago
RikdeRegt's avatar

Exams broken on object-oriented-principles

https://laracasts.com/series/object-oriented-principles-in-php-2024-edition/episodes/5/exam Episode 4 exam also doesnt work. Tried Chrome + incognito and Edge

RikdeRegt's avatar
RikdeRegt's avatar MaxH3mos agoPHP
2
1
Last reply by MaxH 3mos ago
earmsby's avatar

Failed deployment

I'm trying to deploy some very minor changes on a Forge site that I've deployed to at least 50 times over the past year or two. Today when I tried to deploy these couple of changes, I got this error" Tunnel exited with a non-zero code [1]. Error output: Mon Feb 23 05:40:20 PM UTC 2026 Any suggestions on how to figure out what the problem might be?

earmsby's avatar
earmsby's avatar earmsby3mos agoForge
5
150
Last reply by earmsby 3mos ago
Nacho1714's avatar

Spanish AI Audio Suddenly Disappeared — Can't Continue Learning

Hi everyone, I'm from Argentina and I've been going through the "PHP For Beginners" series on a free account. I was really enjoying it and was seriously considering getting a paid subscription. One of the things that impressed me the most was the AI-generated Spanish audio option. As a native Spanish speaker, it made a huge difference — I could actually focus on under

Nacho1714's avatar
Nacho1714's avatar Camilo211G3mos agoGeneral
2
1
Last reply by Camilo211G 3mos ago
MohamedElsaed's avatar

Claude Agent SDK for Laravel — Build AI agents with Claude Code in PHP

Hey Laracasters, I just published a Laravel package that wraps the Claude Code CLI as a library. It gives you a fluent PHP API for building AI agents with file operations, bash commands, code editing, subagents, MCP servers, and structured output. Quick example: use ClaudeAgentSDK\Facades\ClaudeAgent; use ClaudeAgentSDK\Options\ClaudeAgentOptions; $options = ClaudeAgentOptions

MohamedElsaed's avatar
MohamedElsaed's avatar MohamedEls...3mos agoAI
2
1
Last reply by MohamedElsaed 3mos ago
fesja's avatar

How to do send two parameters to a blade directive?

Hi, I want to write a directive that takes an array and a field name @join($job->locations, 'name') and produces New York / San Francisco. I have tried to do this first approach but it's not working because it's receiving just one parameter, not two: Missing argument 2 for App\Providers\AppServiceProvider::App\Providers{closure}() in AppServiceProvider.php line 28 at Handle

fesja's avatar
fesja's avatar Ken-vdE3mos agoLaravel
11
2
Last reply by Ken-vdE 3mos ago
thesimons's avatar

If you plan to update to PHP 8.5 your Laravel projects, don't do that (yet)

Hello, Yesterday - while deploying a new server - I have the funny idea to install PHP8.5 just released. As result for that I got a list of errors. I think it'd be better to give it few weeks before thinking about deploying in production. Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - brianium/paratest[v7.8.3,

thesimons's avatar
thesimons's avatar JussiManni...3mos agoLaravel
7
4,121
Last reply by JussiMannisto 3mos ago
Halim's avatar

Laravel Breeze Password Reset Request Returns Full Page Instead of JSON

Im using laravel Brezze, but Im using ajax request when click on submit button: here how it looks like the forgot password controller looks like: public function store(Request $request): RedirectResponse { $request->validate([ 'email' => ['required', 'email'], ]); // We will send the password reset link to this user. Once we have attempted // to send the link, we

Halim's avatar
Halim's avatar LaryAI3mos agoLaravel
1
1
Last reply by LaryAI 3mos ago
manimonji's avatar

Quirks mode, doctype IS in layout.

I have this blade page @extends('layouts.app') @push('styles') <link href="{{ asset('css/common.css') }}" rel="stylesheet"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/driver.css"/> <style> /* Override Driver.js font */ .driver-popover { font-family: inherit !important;

manimonji's avatar
manimonji's avatar Glukinho3mos agoLaravel
5
1
Last reply by Glukinho 3mos ago
Pixelairport's avatar

Reference markdown file in core.blade.php

I want to structure my coding standards in md files in a composer package. At the moment i create a core.blade.php in my package for boost and this works. Now I want to create a directory /package/resource/markdown/ ... to load files from this directory instead put all in the core.blade.php. Is that possible? Because I dont understand how? I already tried it like in spatie pack

Pixelairport's avatar
Pixelairport's avatar Pixelairpo...3mos agoAI
2
1
Last reply by Pixelairport 3mos ago
hellencharless54's avatar

Serving Storage Files on Shared Hosting Without Symlink

Hi everyone, I’m running into a challenge on a shared hosting environment while developing an ad marketplace in Laravel. Everything works perfectly on localhost, but on the live server, images uploaded via Livewire (storage/app/public/ads/content) are not appearing in Blade templates. Oddly, .AVIF images work in generated previews, but .JPG and .PNG do not. Standard asset('stor

hellencharless54's avatar
hellencharless54's avatar jlrdw3mos agoDesign
3
1
Last reply by jlrdw 3mos ago
SirLouen's avatar

Fix reproduction speed

Once thing I've noticed, is that reproduction speed always resets from video to video It would be great if the reproduction speed was saved in localstorage or wherever and it applied sitewide. I've seen this feature is implemented in pretty much all platforms except for this.

SirLouen's avatar
SirLouen's avatar SirLouen3mos agoFeedback
0
1
vincent15000's avatar

Relationship with pivot table

Hello, I have a pivot table with some additional datas. While declaring the pivot additional datas, I don't want to load the formula. public function articles(): BelongsToMany { return $this->belongsToMany(Article::class, 'group_article')->using(GroupArticle::class)->withPivot('rounding_rule', 'precision'); } I prefer loading the formula only when needed. $table-&

vincent15000's avatar
vincent15000's avatar vincent150...3mos agoEloquent
2
1
Last reply by vincent15000 3mos ago
Shivamyadav's avatar

Props does not gets cleared in inertia ?

In my projects / Index component i have this code and when I search anything and get's the expected result and try to navigate back to the same projects/ index url on i had searched earlier the input search component get's clear and even also from the url params. my code const page = usePage(); const projects = computed(() => page.props.projects); const breadcrumbLinks = [

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...3mos agoInertia
2
1
Last reply by Shivamyadav 3mos ago
BladeOfGaladrial's avatar

To API or Not to API? Laravel/Inertia/SSR vs. React Native for an SEO-Heavy Travel Site

Hey guys, I’m facing a bit of an architectural dilemma. I currently run traveljunky.in, a travel itinerary and package platform. Current Stack: * Laravel (Backend) Inertia.js (The bridge) React (Frontend) Server-Side Rendering (SSR) enabled via Node.js The Dilemma: We are considering a move to React Native to provide a better mobile experience (offline access to vouchers, push

BladeOfGaladrial's avatar
BladeOfGaladrial's avatar vincent150...3mos agoReact
6
1
Last reply by vincent15000 3mos ago
Neha_26's avatar

Images not rendering in Laravel on Shared Hosting (Works on Localhost) | Symlink & Path Issue`

Hi everyone, I'm developing an ad marketplace where I generate PNG previews of Blade templates using an external API (HCTI). Everything works perfectly on localhost, but I'm facing a critical issue on my live server (Shared Hosting). The Problem: Images uploaded via Livewire (stored in storage/app/public/ads/content) are not appearing in the Blade templates on the live site. Od

Neha_26's avatar
Neha_26's avatar Snapey3mos agoLaravel
3
1
Last reply by Snapey 3mos ago
kwojcik's avatar

TableFilter and Flatpickr project to review - Laravel 12 + Livewire 3

A minimal Laravel 12 + Livewire 3 demo app showing how to fix broken JavaScript after component reloads, especially when the issue is triggered by wire:navigate or the #[Lazy] attribute. The example includes Flatpickr for date inputs and the TableFilter package for table interactions. Would you approach this problem differently or use another pattern to keep JavaScript stable a

kwojcik's avatar
kwojcik's avatar kwojcik3mos agoCode Review
0
1
Caraes_Naur's avatar

Spatie Permissions, Teams with Super-Admin

I think I've managed to get these features to get along, just looking for a sanity check. Environment: Laravel 12, MySQL 8, Spatie Permissions 6.24.1 Enable Teams in config/permission.php. Set default_team_id = null In the migration, make team_id nullable and omit from indexes: @@ -48,7 +48,8 @@ return new class extends Migration $table->string('guard_name');

Caraes_Naur's avatar
Caraes_Naur's avatar Caraes_Nau...3mos agoLaravel
0
3
earmsby's avatar

two importers for same model?

I'm trying to implement two separate importers on the same model (Contract). I want one to create new records only and the other update existing records only. I know you can combine these, but the client I'm building for needs these to be separated. What is the best approach for this? FWIW, I've already fully built the importer to create new records. Now I'm looking to build a

earmsby's avatar
earmsby's avatar earmsby3mos agoFilament
4
5
Last reply by earmsby 3mos ago
mikon's avatar

OCR

i want to get the TEXT from a Fifa 21 image screenshoot , to get statistics(goals.possesion,tackels,corners, etc) and after to save in db ,, what do you suggest for me to use ?

mikon's avatar
mikon's avatar adityakdev...3mos agoLaravel
5
2
Last reply by adityakdevin 3mos ago
cupok's avatar

Debugging

Hi, do you guys have course about debugging PHP or JS? Would be nice to have otherwise!

cupok's avatar
cupok's avatar wordxpress...3mos agoPHP
5
3
Last reply by wordxpression 3mos 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.