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

charlesmun's avatar

403 Forbidden issues in Laravel EC2 and Lightsail for Laravel, Filament, Nginx on login

I am deploying a Laravel 12 and Filament 4 application to an Nginx server. My issue is that after the full setup of the ubuntu instance and pulling code from GitHub, the application login page, Password Rest and Signup are all accessible, however, the moment I login, I get a 403 Forbidden error. I am asking for anyone to point me in the right direction on how to fix such an iss

charlesmun's avatar
charlesmun's avatar imrandevbd1mo agoLaravel
2
4
Last reply by imrandevbd 1mo ago
kai-init's avatar

I built a automatic normalized caching layer for Eloquent โ€” massive Redis memory savings

Hey everyone ๐Ÿ‘‹ Over the past few months, Iโ€™ve been working on a small open-source package called laravel-normcache. It actually started from a problem I kept running into across a few different projects. I found myself repeatedly building the same kind of caching layer to avoid redundant Eloquent data sitting everywhere in Redis, so eventually I thought: why not turn it into a

kai-init's avatar
kai-init's avatar kai-init1mo agoEloquent
4
3
Last reply by kai-init 1mo ago
Michael88's avatar

Connect to postgres cluster

Hello Could anyone please help me with pgsql cluster issue I used this config 'pgsql' => [ 'driver' => 'pgsql', 'host' => [ env('DB_HOST_1', '10.0.0.1'), env('DB_HOST_2', '10.0.0.2'), ], 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USER

Michael88's avatar
Michael88's avatar JussiManni...1mo agoLaravel
8
1
Last reply by JussiMannisto 1mo ago
Respect's avatar

how to listen globally to livewire updating hook from AppServiceProvider.php in livewire 4

how to listen globally to livewire updating hook from AppServiceProvider.php in boot method Does not work \Livewire\Livewire::listen('component.updating', function ($component) { // This will now catch the internal "Livewire\Generated\Component..." classes throw new \Exception('Global Boot Caught SFC: ' ); });

Respect's avatar
Respect's avatar Respect1mo agoLivewire
16
18
Last reply by Respect 1mo ago
ShuftiPro's avatar

shopify development

We need liquid language lessons, to develop, and design Shopify stores for clients, would you please let me know when will you start working on it? its most popular and famous domain , but here is nothing about shopify , we need your help. please work on liquid code basic and advance.

ShuftiPro's avatar
ShuftiPro's avatar Lisalrby1mo agoDesign
2
1
Last reply by Lisalrby 1mo ago
avishkaMe's avatar

Implement ticket watch feature like jira,clickup using laravel

Hello there, I'm working on a support ticket system project, which have features like add tickets, assign to member groups, commenting for ticket, attaching files. Now the client wants a feature like watching the ticket. So if a user decide to watch the specific ticket, each activity related to that particular ticket should notify to the user.(Ex: through email) I searched the

avishkaMe's avatar
avishkaMe's avatar vincent150...1mo agoLaravel
3
1
Last reply by vincent15000 1mo ago
Rankus's avatar

Illuminate\Http\Client\PendingRequest : set headers in beforeSending callback

Hello, I'm trying to add headers to outgoing PendingRequests from within beforeSending callback. I guess it's the right moment to be sure everything I need is set to populate my headers' data. Here is my callback: public function buildRequestToHeaders(\Illuminate\Http\Client\Request $currentRequest, array $options, PendingRequest $requestTo): PendingRequest { $headers['x-fo

Rankus's avatar
Rankus's avatar Rankus1mo agoLaravel
2
8
Last reply by Rankus 1mo ago
AxelG's avatar

Add meta to JSON:API resource relationships

Hi, I am using the native JSON:API implementation added in Laravel 13 to gererate resources from my models. One of my models have a many-to-many relationship with pivot values. I want them to be included in the relationship on the resource object. With the help of laraveljsonapi package documentation and AI, I found that I am supposed to put the pivot values in the meta object

AxelG's avatar
AxelG's avatar AxelG1mo agoLaravel
5
11
Last reply by AxelG 1mo ago
eskiesirius's avatar

Database Backup Rule

Hello! i am currently using dedicated database of Digital Ocean and it has a standby node. My question now is that, what is the best practice for creating backups? Do i still need to dump the file? How about the binlogs? What are the best config for the database? EDIT: My app is a Payment gateway, we are now handling large amount of money daily

eskiesirius's avatar
eskiesirius's avatar imrandevbd1mo agoDevOps
3
10
Last reply by imrandevbd 1mo ago
Bento's avatar

VSCode/Cursor setup for PHP 8.5 & Laravel 13?

Hiya, Been using VSCode and now Cursor for years and have accumulated some extensions to work with Laravel and PHP. However I have started to become a little puzzled which ones I really need and trying to declutter / optimize my setup. Currently I run: Intelephense (paid) Laravel (Official extension) Laravel Pint to format on save etc. PHPStan by SanderRonde PHP Namespace Reso

Bento's avatar
Bento's avatar imrandevbd1mo agoPHP
3
9
Last reply by imrandevbd 1mo ago
alexteie's avatar

is there already an good implentation of passkey's in laravel?

I want to implement passkey to laravel framework? is there an good howto/tutorial? or can laravel do this out off the box with Auth method?

alexteie's avatar
alexteie's avatar martinbean1mo agoLaravel
3
1
Last reply by martinbean 1mo ago
eskiesirius's avatar

Database Replication

Hello! i created a fintech app, and right now we have a high traffic(16 reqs/second.. not sure if this is a high traffic already) and now, i am thinking of using a database replication.. by setting the read/write config and 'strict' => true, ... should i not be worried of the integrity of the data? like the delays of the newly added/updated record?

eskiesirius's avatar
eskiesirius's avatar martinbean1mo agoDevOps
9
5
Last reply by martinbean 1mo ago
seongbae's avatar

Migrating to Laravel Cloud

Hello, I am in the process of migrating a site from Forge/Digital Ocean to Laravel Cloud. Laravel Cloud seems pretty easy to set up and use, however, I am not sure how to migrate existing files in the storage/app folder to a new bucket created on Laravel Cloud . I am not using S3 on the current server set up. All the files are stored on the web server under storage/app folde

seongbae's avatar
seongbae's avatar seongbae1mo agoServers
2
1
Last reply by seongbae 1mo ago
ghabriel25's avatar

Fat service class

Please give your honest review about my service class. This class only called from model observer, wrapped within database transaction and handle creating and deleting user activities deleting notifications related to activities Model Type Softdelete UserActivity Polymorphic โœ”๏ธ Notification Polymorphic โŒ Trying to consolidate it with dedicated class but dont know

ghabriel25's avatar
ghabriel25's avatar ghabriel251mo agoCode Review
6
1
Last reply by ghabriel25 1mo ago
gravity_global's avatar

JSON:API Resource collections is there an issue with docs?

So the docs have these as being equal ways to return a collection of JSON:API resources. return PostResource::collection(Post::all()); return Post::all()->toResourceCollection(); However thats misleading. The first would go Illuminate\Http\Resources\JsonApi\AnonymousResourceCollection which has the with method providing the 'included' in the output. The section would attem

gravity_global's avatar
gravity_global's avatar gravity_gl...1mo agoEloquent
13
1,160
Last reply by gravity_global 1mo ago
jswoolf01's avatar

Best way to truncate very large data table?

Long story short: I maintain a large Laravel database app that runs mainly on PHP, with MariaDB as the database engine. One table in this database is a log of changes to another table. I recently discovered that due to a problem of some kind (not yet sure what), the log table had bloated to a frightening size: more than 167 million records, with the vast majority of them bein

jswoolf01's avatar
jswoolf01's avatar jswoolf011mo agoEloquent
5
7
Last reply by jswoolf01 1mo ago
Shivamyadav's avatar

what folder structure patterns have you found most effective ?

In Laravel projects, what folder structure patterns have you found most effective for keeping interfaces (contracts) and their implementations maintainable as the codebase grows? Specifically, how do you balance: feature-based organization vs layer-based organization discoverability vs separation of concerns Any examples from production applications would be helpful.

Shivamyadav's avatar
Shivamyadav's avatar martinbean1mo agoTips
4
2
Last reply by martinbean 1mo ago
Rupali06's avatar

What is the duration of React course?

Hi everyone! I'm a beginner and I really want to learn React, but I don't know where to start. I have basic knowledge of HTML, CS and a little JavaScript, can anyone suggest a good course or roadmap for me?

Rupali06's avatar
Rupali06's avatar Anurag01mo agoAI
2
3
Last reply by Anurag0 1mo ago
shadkamel's avatar

Football streaming

hello every one, can you suggest a platform or a website than can provide live football streaming to websites please? i want to connect that live to my website.

shadkamel's avatar
shadkamel's avatar martinbean1mo agoGeneral
11
1
Last reply by martinbean 1mo ago
alihamzahq's avatar

Open-source Laravel 12 + React 19 multi-tenant SaaS starter โ€” feedback welcome on the architecture

Hi all, Iโ€™ve been working on an open-source multi-tenant SaaS starter kit and finally got it to a point where Iโ€™m comfortable sharing it publicly. Itโ€™s built with Laravel 12, React 19, Inertia.js, and Stancl/Tenancy, using a database-per-tenant approach. Repo: https://github.com/alihamzahq/laravel-multi-tenant-saas-starter The main reason I built it is that most multi-tenant L

alihamzahq's avatar
alihamzahq's avatar alihamzahq1mo agoGeneral
0
79
marinarusalka's avatar

Adding optional fields to user registration

Hello. I'm using Laravel 13.5.0 with Livewire starter kit. I've added four new fields to my users model in Laravel: "organization", which is required, "orcid" and "orgurl", which are optional, and "role", which is optional and also not entered by the user on the registration page but to be left as null until set separately by the website

marinarusalka's avatar
marinarusalka's avatar ghabriel251mo agoLivewire
4
3
Last reply by ghabriel25 1mo ago
Mastertech01's avatar

php artisan error(failed to open stream: No such file or directory)

hello everyone, I am cloning a project on Github, I followed the tutorial steps listed bellow clone the repo $ git clone https://github.com/coreui/coreui-free-laravel-admin-template.git my-project go into app's directory $ cd my-project install app's dependencies $ composer install install app's dependencies $ npm install the above stages were successful and I have connected th

Mastertech01's avatar
Mastertech01's avatar vincent150...1mo agoGeneral
7
90
Last reply by vincent15000 1mo ago
vincent15000's avatar

How to obsfucate a Laravel application's code ?

Hello, Do you know how to obfuscate a Laravel application's code and how to maintain great performances for a real time application ? I know IonCube, but there is perhaps other ways ? Furthermore when the code is obfuscated, the performances are lower. Is Octane a good way to get better performances when the code is obfuscated ? Does Octane work well with docker ? If I use Octa

vincent15000's avatar
vincent15000's avatar imrandevbd1mo agoLaravel
5
2
Last reply by imrandevbd 1mo ago
dhanikk's avatar

๐Ÿš€ DBStan Now Supports PostgreSQL

Hi everyone ๐Ÿ‘‹ I wanted to share a quick update on DBStan โ€” the database analysis tool for Laravel. Weโ€™ve just added support for PostgreSQL ๐ŸŽ‰ ๐Ÿ” Whatโ€™s New DBStan can now analyze PostgreSQL databases and detect issues like: Missing indexes (e.g., on foreign keys) Incorrect or missing relationships Risky nullable columns Inefficient data types (like using JSON instead of JSONB) ๐Ÿ’ก

dhanikk's avatar
dhanikk's avatar imrandevbd1mo agoLaravel
1
1
Last reply by imrandevbd 1mo ago
vincent15000's avatar

Some comments disappear from the posts ?

Hello, I read once again some old posts I had posted. For example this one. https://laracasts.com/discuss/channels/laravel/fortify-and-password-confirmation Sure I had answers some comments, but I don't see any other comments than my comments. Where are the other comments ? Any bug ? Thanks ;). V

vincent15000's avatar
vincent15000's avatar imrandevbd1mo agoFeedback
1
1
Last reply by imrandevbd 1mo 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.