Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

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

laracoft's avatar

Why `markdown()` renders differently?

A $html = <<<'HTML' <x-markdown>{{ $variable->value }}</x-markdown> HTML; dd(Str::of($html)->markdown()); Illuminate\Support\Stringable^ {#444 #value: "<p><x-markdown>{{ $variable-&gt;value }}</x-markdown></p>\n" } // B $html = <<<'HTML' <x-markdown>{{ $variable->value }} </x-markdown>

laracoft's avatar
laracoft's avatar DigitalArt...7mos agoLaravel
1
1
Last reply by DigitalArtisan 7mos ago
SigalZ's avatar

realrashid sweetalert2 not defined or not found

I am trying to use realrashid/sweetalert2 in laravel 12. I installed the package and in my blade I have this code: <!DOCTYPE html> <html lang="en"> <head> @include('layouts.meta') <title>Home | {{ config('app.name') }}</title> @vite(['resources/sass/app.scss', 'resources/js/app.js']) </head> <body data-bs-spy="

SigalZ's avatar
SigalZ's avatar SigalZ7mos agoGeneral
2
1
june23's avatar

Should I only add complexity when there are issues with the Web System itself and start off simple and follow YAGNI and the Evolutionary Architecture?

I was asking Gemini AI how I should add System Design Patterns to a Web Application System. My question was this -> So adding complexity like a System Design Pattern like "Sequential Convoy" or "Queue Based Load Leveling" or a "CDN Cache" or a "Circuit Breaker" or "Bulk Head" should come from bottlenecks and other conditions

june23's avatar
june23's avatar krisi_gjik...7mos agoGeneral
11
1
Last reply by krisi_gjika 7mos ago
skyber-moeen's avatar

Laravel 11 + Octane (RoadRunner) hangs on auth:sanctum route when exception occurs

I'm using Laravel 11 with Octane (RoadRunner) and noticed different behavior between authenticated and normal routes. public function test(Request $request) { $user = ['name' => 'test', 'username' => 'test123']; $boom = $user['name']['user']; return $user; } Case 1 – With auth:sanctum Route::middleware('auth:sanctum')->post('project/test', [ProjectContro

skyber-moeen's avatar
skyber-moeen's avatar skyber-moe...7mos agoLaravel
0
1
ks500's avatar

Add Livewire Starter Kit to Existing Base Laravel 12 Installation...

I have a minimally customized Laravel 12 app, but now I want to install the Livewire Starter Kit with auth scaffolding. The Laravel 12 docs say to install the starter kit using laravel new my-app, but my app is already installed and setup. Anyone know how I can now add-on the Livewire Starter Kit with auth scaffolding? Thanks!

ks500's avatar
ks500's avatar kornel7mos agoLaravel
7
14
Last reply by kornel 7mos ago
nicholasnet's avatar

How Do You Handle Client-Side Validation in the New Inertia Form Component

I’ve been experimenting with the new Inertia Form component and really like how it simplifies handling form state, submissions, and server-side validation. However, I’m still unclear about the best way to implement client-side validation before submitting a form to server. Most examples I’ve found focus on server-side validation triggered after the form is submitted. But what’s

nicholasnet's avatar
nicholasnet's avatar Joey337mos agoInertia
2
1
Last reply by Joey33 7mos ago
wulfheart's avatar

Livewire infinite scrolling

I found several tutorials regarding infinite scrolling with Livewire but they all require to rerender everything which will take longer with every new page that gets appended. Is there any way to only append some html to a livewire component?

wulfheart's avatar
wulfheart's avatar RazIacob7mos agoLivewire
4
1
Last reply by RazIacob 7mos ago
minaremonshaker's avatar

Thoughts on Filtering Approach in Jeremy McPeak’s API Course

Hello, I’m currently taking the Jeremy McPeak course on building APIs. I’ve reached the 10th episode, where he demonstrates model filtering. However, I find his approach a bit complex and wonder why he didn’t create a dedicated service class for tickets. In that class, he could have implemented a filter method using the when() method to handle filtering logic for the ticket req

minaremonshaker's avatar
minaremonshaker's avatar minaremons...7mos agoLaravel
5
1
Last reply by minaremonshaker 7mos ago
ATR22's avatar

How to use older version of starter kit on "laravel new myapp"?

I dont want use this new feature of starter kits that use Fortify that happend at last month. How i should use version of starter kit before this change? If I use "composer install" to use Laravel 12.30 it doesn't show starter kit selection. and with "laravel new newapp" i can't tell it to use version of 2 months ago. how I should use Laravel 12 starter kit

ATR22's avatar
ATR22's avatar ATR227mos agoLaravel
10
1
Last reply by ATR22 7mos ago
atomas's avatar

Low specs VPS - how low can you go?

Hi. I run a small database website built on Laravel 11, using php 8.3 and mysql. Database is around 250MB and is well indexed. Currently I'm running it from 2 CPU / 8GB / NVME VPS with Almalinux 9. It runs well but there are other, poorly optimized sites running on the same server, so I want to get another VPS just for this one website. Normally website has around 1000 visitors

atomas's avatar
atomas's avatar atomas7mos agoServers
4
1
Last reply by atomas 7mos ago
Shivamyadav's avatar

How to Implement a Unique “Like” System in Laravel Without User Registration?

I’m building a portfolio website in Laravel where visitors can like projects, but there is no authentication system. How can I track unique likes per project using cookies, device fingerprints, or IP hashing? I need a secure method to avoid multiple likes by the same visitor while keeping the system anonymous.

Shivamyadav's avatar
Shivamyadav's avatar sebastiang...7mos agoLaravel
13
1
Last reply by sebastiangperez 7mos ago
Glukinho's avatar

Phantom unseen replies

Hi, I see "phantom" replies here and there. In threads list I see a thread that is replied while there are no answers inside the thread. I saw this in several threads last days, here the latest one: https://laracasts.com/discuss/channels/general-discussion/do-e-commerce-backend-apis-need-a-lot-more-work-than-a-clone-of-twitter-or-stackoverflowcom-in-terms-for-portfoli

Glukinho's avatar
Glukinho's avatar Snapey7mos agoFeedback
15
5
Last reply by Snapey 7mos ago
SarahS's avatar

First option not working on Select with Livewire

I have a form which I am using Livewire with. It contains a lot of very simple Select dropdowns with mostly Yes or No answers e.g. <select name="photoIDCheck" id="photoIDCheck" class="form-control" wire:model='photoIDCheck'> <option value="Yes">Yes</option <option value="No">No</o

SarahS's avatar
SarahS's avatar Snapey7mos agoLivewire
10
1
Last reply by Snapey 7mos ago
tomasnorre's avatar

Logo marquees, jumping in logos

I have watched this video from Simon Vrachliotis about Logo Marquees, but I cannot get it to work. If I not have listened well or be able to read the transcript, cannot say, but my logos are still doing a big jump, which is address in the video, but I must to missing something. I have added my code to this https://jsfiddle.net/ek10yox8/2/, but I cannot see what I'm doing wrong.

tomasnorre's avatar
tomasnorre's avatar tomasnorre7mos agoCode Review
3
1
Last reply by tomasnorre 7mos ago
nduagoziem's avatar

Filament Login fails in production (403 Forbidden) but works in local environment

I deployed my laravel API on a VM instance (Oracle Cloud) running Ubuntu 24.04, while my Nuxt Frontend is deployed on Vercel. I am using Laravel Sanctum for SPA authentication. Everything works fine, but when I try to log in as the admin on Filament, I get a 403 Forbidden. The same thing happens on the frontend: when a user tries to log in or make any POST request, it doesn't g

nduagoziem's avatar
nduagoziem's avatar nduagoziem7mos agoFilament
5
1
Last reply by nduagoziem 7mos ago
sniffabyte's avatar

using Faker to fake images always returns false

Hello guys I'm trying to use Faker to populate images on my localhost but it always return false. this is my code use Faker\Factory as Faker; $faker = new Faker; $faker::create()->image('public/images', 400, 300, null, false); // This returns false instead of the created image name. I tried is with tinker and hardcoded in my code and always returns the same thing. I think

sniffabyte's avatar
sniffabyte's avatar madadi7517mos agoLaravel
6
1
Last reply by madadi751 7mos ago
anonymouse703's avatar

How to redirect user to article page when login?

Hi! I'm using the new Laravel 12 + Vue starter. I created a news portal with Welcome.vue and Article.vue. I want that user must be login before it can bookmark an article. When the user login instead redirecting to dashboard it will redirecting to article page.

anonymouse703's avatar
anonymouse703's avatar Shivamyada...7mos agoLaravel
3
1
Last reply by Shivamyadav 7mos ago
vaites's avatar

Pest datasets loading data from database or service container

I'm trying to test some URLs on my application, that must be accesed using different roles. I need the list of pages to be loaded from a database and from an Statamic collection. I have a singleton for that, and I want to use it as a dataset: // returns a \Illuminate\Support\Collection instance dataset('example', fn() => app('example')->keyBy('uuid')); The problem is t

vaites's avatar
vaites's avatar raihanrazo...7mos agoTesting
7
1
Last reply by raihanrazon 7mos ago
Cushty's avatar

Inertia back button on mobile

Hi, i've noticed on mobile if a user navigates to different pages then presses the back button it actually comes out of the web app, ive noticed it on Laracasts as well, is there a way to keep history or another workaround on mobile using Inertia? Thanks

Cushty's avatar
Cushty's avatar DigitalArt...7mos agoInertia
6
1
Last reply by DigitalArtisan 7mos ago
Whitelionx's avatar

Error Call to a member function diffForHumans() on null

I am extremely new to laravel and I'm having an issue "Error Call to a member function diffForHumans() on null (View: D:\www\site\local\resources\views\welcome.blade.php)" [code]@extends('layouts.app') @section('content') Join Now! Best server, awesome battles with your friends! Join Now! Best server, awesome battles with your friends! Join Now!

Whitelionx's avatar
Whitelionx's avatar Whitelionx7mos agoLaravel
6
1
Last reply by Whitelionx 7mos ago
sebastiangperez's avatar

Laracast videos and chapters or path, sorted by date

I wonder if is possible that all the videos , paths or chapters can be sorted by date when you click on discover or browse or they are already in that order another thing is putting the creation date and the update date on the card , that will be useful. Some tutorials are kind old and outdated, maybe need a refresh or review and it will be nice more content on vue and porting

sebastiangperez's avatar
sebastiangperez's avatar LaryAI7mos agoGeneral
1
1
Last reply by LaryAI 7mos ago
sebastiangperez's avatar

Laravel and Inertia hang an application

Hi , i made a website using laravel and inertia and for some reason , seems like when you reload the page o if you do it quickly , seems to hang the server or takes too long to load, any advice ? im using hostinger and not a vps.

sebastiangperez's avatar
sebastiangperez's avatar LaryAI7mos agoLaravel
1
1
Last reply by LaryAI 7mos ago
sh1r3f's avatar

How to write tests to my stancl multitenancy app?

This sounds like a non-specific question. but yes it it.. I can't find the stancl/tenancy documentation for testing useful so can someone refer me to a good docs or article explaining how can I implement stancl/tenancy while testing? Thanks in advance.

sh1r3f's avatar
sh1r3f's avatar kei_mx7mos agoLaravel
4
2
Last reply by kei_mx 7mos ago
mosikasika's avatar

Uncaught RuntimeException: A facade root has not been set.

I just cloned my project, I hadn't opened it for 6 months. When I want to access my routes I get this error. Can you help me? here is my log : [Thu Jan 12 18:36:13.904918 2023] [php:error] [pid 147288] [client 127.0.0.1:44156] PHP Fatal error: Uncaught RuntimeException: A facade root has not been set. in /var/www/html/memba-2022/vendor/laravel/framework/src/Illuminate/Support/

mosikasika's avatar
mosikasika's avatar jhhazelaar7mos agoLaravel
2
1
Last reply by jhhazelaar 7mos ago
earmsby's avatar

Adding a generated ID field when importing a CSV

I have a model Contract. The model uses a required generated ID something like "C-EL98AESF" I have a function on the model that generates this quasi-random ID. Now, I've created a ContractImporter for this resource. I don't want to use any value from the uploaded CSV for this field. I want to generate one from the Contract::getID() just as when a Contract is creating

earmsby's avatar
earmsby's avatar earmsby7mos agoFilament
3
1
Last reply by earmsby 7mos 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.