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

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...6mos agoInertia
6
4
Last reply by DigitalArtisan 6mos 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 Whitelionx6mos agoLaravel
6
1
Last reply by Whitelionx 6mos 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 LaryAI6mos agoGeneral
1
1
Last reply by LaryAI 6mos 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 LaryAI6mos agoLaravel
1
1
Last reply by LaryAI 6mos 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_mx6mos agoLaravel
4
151
Last reply by kei_mx 6mos 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 jhhazelaar6mos agoLaravel
2
1
Last reply by jhhazelaar 6mos 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 earmsby6mos agoFilament
3
1
Last reply by earmsby 6mos ago
TarikAli's avatar

Refactor function and DB Transaction

Hello, i have this function in a service : public function createOptionWithValues(array $data): Option { $data = $this->prepareOptionData($data); $validationErrors = $this->validateOption($data); if (!empty($validationErrors)) { throw ValidationException::withMessages($validationErrors); } $option =

TarikAli's avatar
TarikAli's avatar tykus6mos agoLaravel
3
1
Last reply by tykus 6mos ago
DomHutton's avatar

LaraPress

Does a Laravel Wordpress clone exists? I'm not interested in the plugin architecture but User Management + WYSIWYG Posts/Pages + User Management System would have saved me budget on plenty of projects. Do other people feel the same? Would it be something I should investigate making when I next have the budget for it?

DomHutton's avatar
DomHutton's avatar Tray26mos agoLaravel
4
1
Last reply by Tray2 6mos ago
Cushty's avatar

Postcode lookup

Hi, what do you guys use for UK postcode search? i can use google but seems it can get expensive, ive seen https://postcodes.io/ just checking what you guys use? Thanks

Cushty's avatar
Cushty's avatar Cushty6mos agoLaravel
4
1
Last reply by Cushty 6mos ago
fritsjan's avatar

ticketing for laravel?

Hi All, I am developing a dashboard in laravel (inertia, vue) and would like my users to be able to give me feedback. A simple message system would be enough for now, but bug reports or feature requests or support would be nice in the future. An integrated ticketing system would be nice. This might be an option but has been updated 3 years ago: https://github.com/coderflexx/lar

fritsjan's avatar
fritsjan's avatar LaryAI6mos agoGeneral
1
1
Last reply by LaryAI 6mos ago
vincent15000's avatar

How to apply CSS styles and show images in an html email for Gmail ?

Hello, I just created a mailable and its blade view. Sent to Gmail and some other mail clients, the styles are deactivated. Same thing with base64 encoded images that are not displayed. How is it possible to apply CSS styles that can be applyed and displayed in Gmail ? How is it possible to show images in an html mail received on Gmail ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar Snapey6mos agoLaravel
12
8
Last reply by Snapey 6mos ago
HubertVanD's avatar

First option of select dropdown returns NULL

I have a Livewire component which contains a dropdown menu filled by values from the database: <form wire:submit.prevent='createIdea' action="#" method="POST" > <div> <select wire:model="category" name="category_add" id="category_add"> @foreac

HubertVanD's avatar
HubertVanD's avatar Snapey6mos agoLivewire
7
1
Last reply by Snapey 6mos ago
helloejsulit's avatar

How does e-wallet works?

Hello, I am having a bit of confusion regarding how does money coming from PayPal or credit card be converted to an e-wallet balance and use that balance as payment to the merchant? Say, I cash in $100 to my e-wallet account using PayPal. That transaction should be saved on my database, right? Then, I'll update the user's e-wallet balance to $100. Now, I'm going to purchase an

helloejsulit's avatar
helloejsulit's avatar helloejsul...6mos agoGeneral
14
1
Last reply by helloejsulit 6mos ago
SaeedPrez's avatar

What Are Some PHP Twitter Accounts Everyone Should Follow?

Hey guys, I've been on Twitter since 2009 but barely ever used it. I did my first ever tweet a couple of days ago. So I'm wondering, what are some PHP related accounts/people everyone should follow? So far I have.. https://twitter.com/laracasts https://twitter.com/jeffrey_way https://twitter.com/laravelphp https://twitter.com/taylorotwell https://twitter.com/stauffermatt https

SaeedPrez's avatar
SaeedPrez's avatar dodomedia6mos agoPHP
16
119
Last reply by dodomedia 6mos ago
raobilal4822's avatar

Live and Reactive is not wokring using relationship

I am using a relation with a section like this ->relationship('commissionSetup') ->schema(function (Get $get, $record) use ($serviceLevel) { $wizardServiceLevel = $get('../../meta.service_level'); $finalServiceLevel = $serviceLevel ?? $wizardServiceLevel ?? self::getPropertyServiceLevel($get('parent_

raobilal4822's avatar
raobilal4822's avatar LaryAI6mos agoFilament
1
1
Last reply by LaryAI 6mos ago
minaremonshaker's avatar

Managing API Exception Handling with Custom Formats in bootstrap/app.php

Hello, I am developing an API and want to handle exceptions in a specific format. I have added this format to the bootstrap/app.php file, but I want to avoid putting too much code in that file. Is it possible to extend the NotFoundHttpException and customize its response so that it appears according to my desired format? If this is possible, how can I apply it within bootstrap/

minaremonshaker's avatar
minaremonshaker's avatar minaremons...6mos agoLaravel
14
91
Last reply by minaremonshaker 6mos ago
minaremonshaker's avatar

Bearer Token Visibility in API Testing Tools

Hi, when I use Insomnia or Postman to test my API, I notice that the bearer token appears. Is this normal, or should it be secured in some way? Does it not appear at all in production? below is a copy of the console tap in insomnia * Preparing request to http://ticket-please.local/api/v1/users/1 * Current time is 2025-12-01T16:01:22.190Z * Enable automatic URL encoding * Using

minaremonshaker's avatar
minaremonshaker's avatar JussiManni...6mos agoLaravel
10
32
Last reply by JussiMannisto 6mos ago
vincent15000's avatar

Inline attachment with a Mailable

Hello, I'm trying to add an inline attachment. https://laravel.com/docs/12.x/mail#inline-attachments But I get this error message. Undefined variable $message The documentation says that the $message variable is not available in plain-text messages. I don't have any text attribute in the content class. public function content(): Content { return new Content( view:

vincent15000's avatar
vincent15000's avatar vincent150...6mos agoLaravel
3
2
Last reply by vincent15000 6mos ago
thesimons's avatar

Alternative way to achieve this kind of validation

Hello, don't kill me please. I tried the Laravel "validation" style but I'm unable to get the same result for the following (dirty) code. public function update(Request $request) { if (empty($request->current_password)) { return back()->withInput() ->with('error', 'lang.profile.settings.preferences.password.current_pas

thesimons's avatar
thesimons's avatar Tray26mos agoLaravel
5
1
Last reply by Tray2 6mos ago
DavidSprauel's avatar

Vue 3 TreeSelect

Hello, i'm using this package https://github.com/megafetis/vue3-treeselect for a Tree Select component, and it works like a charm in a front point of view, but it spam my console with warning which I can't get rid of. I would have like to post an issue in the package github but it isn't supported anymore. To be fair, I know I should be looking for another package, but i've been

DavidSprauel's avatar
DavidSprauel's avatar agb16mos agoVue
4
99
Last reply by agb1 6mos ago
AtlasApollo's avatar

Shai-hulud 2.0 and dev/prod environments

Hi, I have a Laravel/Vue SaaS and just got a new dev machine. I wanted to set up the environment, but was concerned about Shai-hulud 2, and 3 and so on: From https://www.darkreading.com/cyberattacks-data-breaches/shai-hulud-variant-cloud-ecosystem: "...the new variant "also automatically backdoors every npm package maintained by the victim, republishing them with mali

AtlasApollo's avatar
AtlasApollo's avatar LaryAl6mos agoGeneral
3
1
Last reply by LaryAl 6mos ago
Jarhakoz's avatar

Slot in persistent Inertia layout

I'm following the guide in https://inertiajs.com/pages#persistent-layouts And I'v placed a named slot in one of the layout components, <TopBar> And I'm then trying to use that named slot from the Inertia page component, but the problem is that the page component does not import the layout, hence it's persistent. Now how does one use the slot int the (parent) layout compon

Jarhakoz's avatar
Jarhakoz's avatar Shivamyada...6mos agoInertia
8
3
Last reply by Shivamyadav 6mos ago
woweya's avatar

Using $this when not in object context (Script JS)

Hello to everyone, when in my PHP Blade View I use: @script <script> </script> @endscript It returns an Exception which is: "Using $this when not in object context" Why is that? My controller doesn't have even anything inside other than the render method and the mount method.

woweya's avatar
woweya's avatar kevintherm6mos agoLivewire
14
2
Last reply by kevintherm 6mos ago
vincent15000's avatar

Discussion around Livewire / VueJS vs htmx

Hello, I know Livewire and VueJS quite well, but I don't know htmx (just some quick tries). I wonder ... if I have an application in which only one or two pages are really complex, is it worth using Livewire or VueJS for these pages ? or is it better to use htmx ? I have seen that htmx seems to be very light beside of Livewire or VueJS. Who has already used htmx ? Is it a good

vincent15000's avatar
vincent15000's avatar Snapey6mos agoGeneral
4
1
Last reply by Snapey 6mos 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.