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

chithira-kumar's avatar

Laravel showing "403 Forbidden" after assigning roles — works only after cache clear

Hi everyone, Recently we are facing an issue in our Laravel application related to role-based access. Scenario: A new user registers successfully. Admin assigns roles/permissions to that user (roles are correctly saved in the database). When the user logs in immediately after the role assignment, the system shows a 403 Forbidden error. If we run cache clear commands (php artisa

chithira-kumar's avatar
chithira-kumar's avatar Glukinho3mos agoLaravel
1
1
Last reply by Glukinho 3mos ago
lararara's avatar

Disabling fortify registeration in Laravel 12 Vue starter kit with Wayfinder gives build errors /resources/js/routes/verification

Using Laravel 12, Vue Starter kit, Laravel auth with Wayfinder will give build errors after removing fortify features, like registration. config/fortify.php:147 'features' => [ // Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::twoFactorAuthentication([ 'confirm' => true,

lararara's avatar
lararara's avatar lararara3mos agoLaravel
0
1
wemersonrv's avatar

Laravel Pint is not properly indenting custom Blade directives

My Laravel Pint setup is not indenting some custom Blade directives correctly. I am using custom Blade directives that behave like structural blocks (similar to @if, @foreach, etc.). However, when running Pint, the indentation inside these directives is removed or flattened. Here is a simplified example. Original Blade code (properly indented) <div class="mt-8 grid grid

wemersonrv's avatar
wemersonrv's avatar wemersonrv3mos agoGeneral
2
1
Last reply by wemersonrv 3mos ago
iftekhs's avatar

How to turn uploaded svg image into base64 png image?

Hi, I am receiving an SVG image from the user and I want to turn that image into a base64 encoded image. how can I do that?

iftekhs's avatar
iftekhs's avatar Specialday...3mos agoCode Review
8
6
Last reply by Specialdaydeal 3mos ago
amitsolanki24_'s avatar

Convert svg to png/jpeg/jpg/webp

How can I convert svg to (png,jpeg,jpg and webp) in any mention format using pure javascript? Anyone have any idea?

amitsolanki24_'s avatar
amitsolanki24_'s avatar Specialday...3mos agoJavaScript
5
1
Last reply by Specialdaydeal 3mos ago
shez1983's avatar

Dusk - env file is overwriiten but i still see local as env?

so i have created an .env.dusk.local, which replaces .env during dusk tests. I can see that happen if i look at the folder in my IDE. The issue is when i want to check the env, it always returns local.. when it should return testing (which is what i have in my dusk env).

shez1983's avatar
shez1983's avatar shez19833mos agoTesting
0
1
madprabh's avatar

Can I invoke AI SDK this way?

Het Folks, Can I invoke AI ADK in this manner. I need specific providers with specific models. I am using it as an associative array. $response = (new CustomResearch) ->prompt( 'Here are the instructions...\n\n' . $prompt . ' and the data:' . $jsonData, provider: [ 'openai' =>

madprabh's avatar
madprabh's avatar LaryAI3mos agoLaravel
1
1
Last reply by LaryAI 3mos ago
FireBlade's avatar

Images not showing in Laravel Docker production following this guide: https://docs.docker.com/guides/frameworks/laravel/production-setup/#create-a-dockerfile-for-nginx-production

This is my NGINX production Dockerfile : FROM debian AS builder # Install Node.js and build tools RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ nodejs \ npm \ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Set working directory WORKDIR /var/www # Copy Laravel application code COPY ./src/

FireBlade's avatar
FireBlade's avatar simotion3mos agoDevOps
3
5
Last reply by simotion 3mos ago
Randy_Johnson's avatar

My code is a 🤬 mess

Do I a) keep pushing forwards until I have a complete product b) stop now and take a week sorting out everything

Randy_Johnson's avatar
Randy_Johnson's avatar simotion3mos agoGeneral
6
1
Last reply by simotion 3mos ago
simotion's avatar

Centralising SaaS management and securing communication with deployments

There’s a lot of information out there about building a SaaS, but guidance on managing multiple SaaS products in a centralized and scalable way seems scarce—or maybe I’m just not using the right search terms. In preparation for the public launch of my first SaaS application, I’m building a central management platform which I'm naming 'MCP' -a slight nod to one of my all-time fa

simotion's avatar
simotion's avatar LaryAI3mos agoGeneral
1
1
Last reply by LaryAI 3mos ago
Nasmed's avatar

Configuring Laravel Boost with Google Antigravity?

Hi everyone, I'm using Laravel 12 with Google Antigravity (running Claude Opus 4.6 and Gemini Pro 3). The Laravel Boost docs don't list Antigravity support yet, and php artisan boost:install doesn't detect it automatically. Since Boost functions as an MCP server, has anyone managed to manually configure php artisan boost:mcp within Antigravity's settings? I'm looking for the ri

Nasmed's avatar
Nasmed's avatar LaryAI3mos agoAI
1
238
Last reply by LaryAI 3mos ago
petermay's avatar

Destination path too long.

I need in help for deleting files with too long file path.

petermay's avatar
petermay's avatar CalebRiver...3mos agoGeneral
4
1
Last reply by CalebRivers124 3mos ago
tjoskar's avatar

AMQP with laravel

Hi, I'm thinking of building an API application that work something like this: – At front I have a NodeJS app (Express or Sails.js or similar) which is only a thin and dumb layer that receives http requests and forwards it to an Laravel app. Has anyone here worked with AMQP (and laravel) and could point me in the right direction? I found this repo: https://github.com/forumhous

tjoskar's avatar
tjoskar's avatar aachich3mos agoGeneral
6
1
Last reply by aachich 3mos ago
screwtape_mk's avatar

Upgrading from Laravel 8 to 12

Firstly apologies for a noob question however : I'm upgrading my Laravel app from version 8 to 12. Rather than upgrading through each version, I’ve decided to start fresh with a new Laravel 12 installation and migrate my existing code to this new installation. My plan is to copy over essential files from the Laravel 8 app — controllers, models, views, routes, and assets like CS

screwtape_mk's avatar
screwtape_mk's avatar N1-San3mos agoLaravel
18
23
Last reply by N1-San 3mos ago
Tawheedyahya's avatar

Laravel Cache facade not storing data in Redis

Hi everyone 👋 I’m facing an issue with Laravel cache and Redis. Here are the details: OS: Ubuntu PHP: PHP 8.3 Laravel: 12 Redis: installed via apt and also tested with Docker Redis PHP extension: php-redis installed What I did: Set Redis as cache store in .env: CACHE_STORE=redis REDIS_HOST=127.0.0.1 REDIS_PORT=6379 Cleared config cache: php artisan optimize:clear Verified in Ti

Tawheedyahya's avatar
Tawheedyahya's avatar JussiManni...3mos agoLaravel
2
22
Last reply by JussiMannisto 3mos ago
giotsa's avatar

Scanning Laravel Vendors and SNYK

Dear Community Members, I have a question regarding Laravel (ver. 12) vendors, for the project we build the small application on Laravel, deploying code into the Azure repo and trying to use the azure DevOps to build image and delivery to final deployment destination, using SNYK vulnerability testing in the middle. But we faced problems while scanning the project code, SNYK rep

giotsa's avatar
giotsa's avatar giotsa3mos agoLaravel
2
1
Last reply by giotsa 3mos ago
yumna12-coder's avatar

Database Design

Why Isn’t MySQL Database Design Included in the Laravel Path?

yumna12-coder's avatar
yumna12-coder's avatar yumna12-co...3mos agoGeneral
4
1
Last reply by yumna12-coder 3mos ago
minaremonshaker's avatar

Is it a good practice to extend Spatie Permission models in a Laravel application?

Hi everyone, I’m using the Spatie Laravel Permission package in my project, and I’m wondering if it’s considered a best practice to extend the default Role and Permission models and place them inside my app’s Models folder, rather than using the package’s built-in ones directly. Would this approach make sense for better maintainability or customization, or is it generally bette

minaremonshaker's avatar
minaremonshaker's avatar Glukinho3mos agoLaravel
3
3
Last reply by Glukinho 3mos ago
minaremonshaker's avatar

Best way to systematically determine all permissions needed for my Laravel ticketing system app?

Best systematic way to plan all permissions for Laravel 12 ticketing system API with Spatie? I'm building a comprehensive ticketing system API using Laravel 12 with Spatie Laravel-Permission for role-based authorization (roles like admin, manager, agent, customer). I've implemented controllers for: Tickets (CRUD) Roles/permissions management (assign/revoke/view for roles) User

minaremonshaker's avatar
minaremonshaker's avatar DigitalArt...3mos agoLaravel
4
5
Last reply by DigitalArtisan 3mos ago
mboynes's avatar

cURL error 1: Received HTTP/0.9 when not allowed

I have an app that uses Pusher and has for the past 4+ years. I'm trying out reverb locally to see if I can replace Pusher, and I'm running into an error that I can't track down. I'm running the site locally, and I use Valet. MacOS 15.1, Laravel 11.23.5, PHP 8.3.6. I'm starting reverb with the following command: artisan reverb:start --host="0.0.0.0" --port=8080 --host

mboynes's avatar
mboynes's avatar vlamy3mos agoReverb
4
130
Last reply by vlamy 3mos ago
bluedreamer's avatar

When is the Larry AI going to get updated

It is now providing wrong answers. It says its last update is Oct 2023 and Laravel 10. When will it be updated to Laravel 12 and 2025

bluedreamer's avatar
bluedreamer's avatar hinlocaesa...3mos agoAI
2
5
Last reply by hinlocaesar-75309181 3mos ago
costiiordan's avatar

PEST 4 test form submit from JavaScript using Fetch API

I'm adding Browser tests to a Laravel 12 application using PEST 4. This is an older application that was migrated to the latest version of Laravel. I want to test some pages that have forms which are submitted using JavaScript Fetch API and FormData object. The functionality works well in the browser, but when I perform a form submit from PEST, the endpoint that receives the re

costiiordan's avatar
costiiordan's avatar costiiorda...3mos agoTesting
1
1
Last reply by costiiordan 3mos ago
shuvobhai's avatar

Too many email per second

Error : Expected response code 354 but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second " How can i solve this problem??? my code $subscribers = Subscriber::all(); foreach($subscribers as $subscriber){ Notification::route('mail',$subscriber->email)->notify(new NewBlogPosted($post)); }

shuvobhai's avatar
shuvobhai's avatar Darsh3mos agoLaravel
5
1
Last reply by Darsh 3mos ago
Developer654079525's avatar

Conditionally defining routes

What is your approach to conditionally defining the routes, especially when differentiating between the local dev machine and a live production server? Would a simple app()->isLocal() in a route file suffice?

Developer654079525's avatar
Developer654079525's avatar Developer6...3mos agoLaravel
8
6
Last reply by Developer654079525 3mos ago
madprabh's avatar

Best headless browser for web scrapping

Hey guys, I am looking to integrate headless browser in my project for scrapping js based websites. any recommendations on which one to use?

madprabh's avatar
madprabh's avatar LaryAI3mos agoLaravel
1
32
Last reply by LaryAI 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.