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

MikelMedina's avatar

Before method in Policies

Hello everyone, I'm building a REST API and while writing the before() method of one of my policies, I started wondering if this is actually a good use case for it or if I'm abusing the method. This is the code: public function before(User $user, string $ability) { if (in_array($ability, ['create', 'viewAny'])) { $actualTrainerId = request() ->mesocy

MikelMedina's avatar
MikelMedina's avatar jlrdw1w agoCode Review
10
65
Last reply by jlrdw 1w ago
june92's avatar

Is this how to get a KPI for NFRs?

I am learning system design, NFRs, UX case studies, and Security Assurance Programs like OWASP SAMM for example. I have been trying to understand if this how you get a KPI for NFRs, and I have been trying to figure out is if I use Business Impact Analysis, Service Impact Analysis, Risk Analysis? 1. Where BIA, SIA, and RA Fit in Your Framework These three risk-focused exercises

june92's avatar
june92's avatar june921w agoGeneral
0
1
gabrielleles18's avatar

Reverb: Error joining private channel

I have a project in react native and laravel, I'm using laravel reverb to make a chat, but I'm facing some problems in the channel authentication. This is the error: Laravel: v11.31.0 PHP: v8.2.0 Reverb: v1.0 (NOBRIDGE) LOG Pusher : : ["Event sent",{"event":"pusher:subscribe","data":{"channel":"private-users.1"}}]

gabrielleles18's avatar
gabrielleles18's avatar Majid-Kama...1w agoReverb
4
11
Last reply by Majid-Kamali 1w ago
Ali-Hegzy's avatar

Is laravel deal with localhost as a safe domain?

Hello, while I am watching "laravel from scratch 2026" in 'form' video an 419 error appeared to Jeffery way, but it does not appear to me [I used 127.0.0.1 not project.test] , so by little discussion with Gemini AI it said that laravel deals with localhost as a reliable and secure local scope for the situation, so I want to make sure that this information is correct f

Ali-Hegzy's avatar
Ali-Hegzy's avatar jlrdw1w agoLaravel
1
1
Last reply by jlrdw 1w ago
hellencharless54's avatar

Building a Letter Boxed‑Style Word Puzzle with Laravel Architecture & Feedback

Hi everyone 👋 I’ve recently been working on a project inspired by the Letter Boxed word game (the NYT puzzle where you create the shortest possible word chain using all given letters). I decided to build my own version as a web app using Laravel and would love to get some feedback on architecture and best practices. Here’s a quick summary of what I’m trying to build: 🔹 A daily

hellencharless54's avatar
hellencharless54's avatar emirsmith0...1w agoDesign
1
1
Last reply by emirsmith01 1w ago
june92's avatar

What are Key Performance Indicators and how do they relate in web development?

Are KPIs used for Non-Functional Requirements? And are KPIs like latency, throughput, and response times for the Performance NFR? Are KPIs used for Accounts/Marketing and Sales/Manufacturing/etc... So do KPIs have nothing to do with web development?

june92's avatar
june92's avatar june921w agoGeneral
2
1
Last reply by june92 1w ago
Shivamyadav's avatar

Laracasts website figma design?

I want to get the some inspiration and idea form the laracasts admin panel. I have seen it form the Jeffrey's video . @JeffreyWay If possible can I get the public link to see the designs?

Shivamyadav's avatar
Shivamyadav's avatar Shivamyada...2w agoDesign
2
1
Last reply by Shivamyadav 2w ago
exaknight21's avatar

Dokploy Deployment and Supervisors

Hi guys: I am deploying with dokploy for the first time. We have everything set up, except Supervisor. I am very lost on how to proceed, does anyone have any recommendations on how the handled it? Our system sends out email alerts on certain events and on local this was done with supervisor, I am trying to figure out how to do this in production while using dokploy/docker. I’d

exaknight21's avatar
exaknight21's avatar francisgra...2w agoDevOps
2
10
Last reply by francisgradient 2w ago
MahmoudMonem's avatar

How to calculate total time duration using Carbon

I have a courses that has many lessons .. The lessons table has duration timestamp field .. I would like to calculate the total number of hours for a specific course. I tried to check for this but mostly people are calculating differences between two times. course id lesson_title lesson_duration ------------------------------------------------------------------- 1

MahmoudMonem's avatar
MahmoudMonem's avatar Dewaxdi2w agoLaravel
6
3
Last reply by Dewaxdi 2w ago
Max100's avatar

Frankenphp for Windows

Is anyone here using frankenphp for development on Windows? I want to explore it, but the zip file was quarantined by my av software. When I submitted to file to virustotal.com about a third of the vendors flagged it as containing malware, though they didn't all agree about which malware it contained. On the github issue, they don't seem concerned and say it probably got flag

Max100's avatar
Max100's avatar Max1002w agoGeneral
3
7
Last reply by Max100 2w ago
troccoli's avatar

Use accordion as timeline content with FluxUI

I'm trying to build a user journey component, where an admin can see what a user has been doing in the app, like for example, signed-in, visited a page, downloaded a PDF, signed-out. I'm using FluxUI and I thought I would use the Timeline component. However, I would like each timeline item to be an accordion. The admin would see the action the user has done, and if they want mo

troccoli's avatar
troccoli's avatar troccoli2w agoDesign
3
1
Last reply by troccoli 2w ago
Shivamyadav's avatar

Any way to pass the browser's session storage data to the middleware?

Any way to pass the browser's session storage data to the middleware without the query params? As I am working with the multiple test active session prevention for the multiple tabs, I could not get the active tab ID to the midddeware? Any idea how can i get or pass, as query params is the option but user can manually copy and use it. I am using the reverb to prevent it and sen

Shivamyadav's avatar
Shivamyadav's avatar martinbean2w agoLaravel
1
1
Last reply by martinbean 2w ago
vincent15000's avatar

Minecraft on AWS server or another server

Hello, My son wants to install Minecraft on a server. I don't want to pay too much and I thought about AWS but I never used AWS. Who has already tried AWS (no matter if it's for Minecraft or Laravel). I have a question : the prices are displayed per hour. What does this mean ? I only pay when I really use the server when I connect on it to play ? Or do I pay for a full subscrip

vincent15000's avatar
vincent15000's avatar Srohen2w agoGeneral
3
1
Last reply by Srohen 2w ago
eskiesirius's avatar

499 Response on my API

Hello I am having a problem.. my client is receiving Read timed out. (read timeout=10) from my server when they access to my API, this will only occur on high traffic based on my logs when it reaches around 13+ requests per second or around 35k requests per 10 minutes (Peak). My API is sync because i need to display the output as response My current set up is this(I am using fo

eskiesirius's avatar
eskiesirius's avatar eskiesiriu...2w agoDevOps
4
7
Last reply by eskiesirius 2w ago
elsconfairmed's avatar

Passport: escure route against client and authorization grant tokens

After i update passport to 13 i got a 401 on every api route because of the fix "https://github.com/laravel/passport/pull/1901" i was calling with a token generated with client credentials grant The docu says i should use EnsureClientIsResourceOwner::class and not auth:api, but then i get 401 with every other token. So is there a way to secure a route for tokens gener

elsconfairmed's avatar
elsconfairmed's avatar elsconfair...2w agoDesign
0
1
abdulrehman176617's avatar

Does ReactJS hurt SEO?

Hi, What do you guys think? Is ReactJS/Vue.js bad for SEO? Should we use Next.js since it has server-side rendering, which is good for SEO?

abdulrehman176617's avatar
abdulrehman176617's avatar Dewaxdi2w agoReact
8
113
Last reply by Dewaxdi 2w ago
vandan's avatar

generate pdf using javascript

how to generate pdf using javascript only record can download in pdf i so many links can try but cant find solution please help me i have one table in which record can download as pdf how can i download

vandan's avatar
vandan's avatar jeflex2w agoJavaScript
2
1
Last reply by jeflex 2w ago
khanareeb's avatar

Laravel Website Suddenly Slow After Server Migration – Possible PPA Launchpad Issue with PHP 7.4

Hi Everyone, I just wanted to confirm something regarding the recent PPA Launchpad issue. My website is built on Laravel 8.83.27 and currently running on PHP 7.4.33. Before May 1st, I migrated the server from AWS to another VPS cloud provider with better RAM and CPU resources. I initially deployed the website on a temporary domain, and everything was performing well until May 1

khanareeb's avatar
khanareeb's avatar james882w agoLaravel
6
16
Last reply by james88 2w ago
rseletsk's avatar

Steps to move a Laravel application to another computer

Looking for basic steps to move a Laravel application to another computer (different Operating System)

rseletsk's avatar
rseletsk's avatar DigitalArt...2w agoDesign
4
1
Last reply by DigitalArtisan 2w ago
Sbrillo's avatar

simple qr code and laravel 12 (with starter kit), not possible?

Hello everyone, I’ve just registered on this forum. You have no idea how many times your posts have helped me over the years, but now I need help with something different. I’m trying to use QR codes in my Laravel project (Laravel 12 with a starter kit and built-in authentication using Fortify). However, when I try to install Simple QR Code, I get the following error: Problem 1

Sbrillo's avatar
Sbrillo's avatar ghabriel252w agoLaravel
3
2
Last reply by ghabriel25 2w ago
duyn's avatar

Laravel-mix is breaking ...

I have an older project still using Laravel-mix for building out the front-end. Just ran into this issue: [webpack-cli] Error: Cannot find module 'webpack/lib/SizeFormatHelpers' Require stack: - /var/www/node_modules/laravel-mix/src/webpackPlugins/BuildOutputPlugin.js - /var/www/node_modules/laravel-mix/src/builder/webpack-plugins.js - /var/www/node_modules/laravel-mix/src/buil

duyn's avatar
duyn's avatar Richinel2w agoMix
6
51
Last reply by Richinel 2w ago
Shivamyadav's avatar

Prevent Users From Opening the Same Test in Multiple active Tabs?

I am building an online test/exam system in Laravel where users access URLs like: http://manual5.uishare.local/test/{id}/attempt I want to prevent a user from: Opening the same test in multiple tabs If a test is already active, I want to show a message like: "This test is already active in another session/tab." My concerns: Reliability Preventing race conditions Hand

Shivamyadav's avatar
Shivamyadav's avatar DigitalArt...2w agoLaravel
8
1
Last reply by DigitalArtisan 2w ago
Randy_Johnson's avatar

Food for thought

Is a controller or model needed. Could MVC just be MV, or VC, or am I just a crazy person. Also I always written all my store stuff in controller store, is the correct way to write a store function in the model and then pass request parameters from the validation into E.g. User->store($validated) Apologies if it's wrong syntax, but due to AI I haven't written a line of code

Randy_Johnson's avatar
Randy_Johnson's avatar vincent150...2w agoGeneral
7
37
Last reply by vincent15000 2w ago
lukefrost2020's avatar

Unable to resolve dependency [Parameter #0 [ <required> $event ]] in class App\Livewire\Modal

I have a livewire component that is a modal: class Modal extends Component { protected $listeners = ['openModal', 'closeModal']; public $liveWireComponent = null; public $liveWireParams = []; public function openModal($event) { $this->liveWireComponent = $event['liveWireComponent']; $this->liveWireParams = json_decode($event['liveWireParams'], true); } pu

lukefrost2020's avatar
lukefrost2020's avatar AmberBrion2w agoLivewire
2
4
Last reply by AmberBrion 2w ago
osukono's avatar

Laravel validation - bail rule

Could someone please explain, why we need bail rule in validation if it doe's stop running after the first failure by default?

osukono's avatar
osukono's avatar MikelMedin...2w agoLaravel
6
17
Last reply by MikelMedina 2w 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.