Forum

LaravelSolved

How to solved N+1 Problem

I have a Course Table and User table, and those tables relations on a pivot_table. Now I am checking which course user is enrolling in the course model like this but it is creating an n+1 problem. how to solve this. *check enroll* ```php 'enrolled' => $this->users()->where('user_id', auth()->id())...
Posted by Polash
1 week ago. Last reply 5 days ago.
3
65
General discussionSolved

Lifetime Access Disappeared

I noticed my lifetime access has been deactivated. Is anyone experiencing the same issue?
Posted by faridibin
1 month ago. Last reply 1 month ago.
3
311
InertiaSolved

How do I use highlightjs in inertia

How do I use highlightjs in inertia? I searched online and didn't find any good answers, if you have any solution please let me know.
Posted by Polash
4 months ago. Last reply 4 months ago.
3
420
General discussionSolved

Symfony courses

@alex can we have some symfony courses?
Posted by Alexandre
5 months ago. Last reply 4 months ago.
1
380
LivewireSolved

Laravel markdown package code highlighting is not working

Hi, I'm using the Inertia and Laravel markdown package on my project. Locally it's working perfectly. But the problem is when I'm up on the server Markdown's style is breaking. this screenshot for my local server: https://yourimageshare.com/ib/syhLlywmwI and this screenshot for my online VPS serve...
Posted by Polash
5 months ago. Last reply 4 months ago.
4
371
TailwindSolved

Make grid columns the same height

Hello, Losing my sanity here with a simple issue. It only happens when there are validation errors. Any ideas? Tried all of the alignment utilities for both Grid and Flexbox. [Image](https://i.imgur.com/kBEmSEM.png) (simplified) ```vue <div class="grid grid-cols-12 items-center gap-4"> <div...
Posted by Haz
5 months ago. Last reply 5 months ago.
5
512
InertiaSolved

Using different app layouts in one Inertia app

Hey everyone, Have you guys tried using different app layouts in one Inertia + Vue app? Let's say, for the back office (admin) we'll use `admin.blade.php` instead of the default `app.blade.php` And for the front side e.g. e-commerce, we'll use the default `app.blade.php` I need to do this becaus...
Posted by whoami (Daryl)
5 months ago. Last reply 5 months ago.
17
706
LaravelSolved

Redirect nova admin

i am working on a project using Laravel Nova, this is the issue i am facing and can't figure it out why Enlightn is still failing: in **NovaServiceProvider** in **boot()** method i have ``` /** @var Request $request */ $request = $this->app->request; /** * Redirect to /...
Posted by May
5 months ago. Last reply 5 months ago.
1
306
General discussionSolved

I Love Your Database Tool

Hello @alex, can you share your database tool, really love it.
Posted by max
6 months ago. Last reply 5 months ago.
4
387
LaravelSolved

Incorrect VAT calculation

Prepare to have your brain melted. [Image](https://i.imgur.com/IpeAwCV.png) Let's dive into the code... **InvoiceItem**: ```php public function total($includeVat = false): int|float { $this->load(relations: 'vatType'); if ($includeVat) { return $this->price +...
Posted by Haz
7 months ago. Last reply 6 months ago.
7
605