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

vincent15000's avatar

How to check if SSR is used ?

Hello, How is it possible to check if SSR works fine in dev mode ? The documentation says that if running in dev mode (composer run dev), it's not necessary to execute php artisan inertia:start-ssr, it's handled automatically by ViteJS. How is it possible to check if the pages are really rendered by the backend ?

vincent15000's avatar
vincent15000's avatar JussiManni...2mos agoInertia
2
12
Last reply by JussiMannisto 2mos ago
melx's avatar

Convert number(Amount) to words

how to i convert sum amount in to word as per below function $Cash_Sales=CashSales::with('customer_credit','items','store','supplier') ->select('vch_no','cash_c_id','l_type','created_at',DB::raw('sum(amount) as totalM')) ->where('l_type', 'cash_sale') ->groupby('vch_no','l_type','cash_c_id','created_at') ->get(); i want to d

melx's avatar
melx's avatar vincent150...2mos agoLaravel
2
2
Last reply by vincent15000 2mos ago
kevinbui's avatar

Save My Video Speed Preferences

Hi @JeffreyWay. I typically watch the videos at 1.2x or 1.5x speed. But any time I move on to a new video, my video speed is back to 1.0x. Can we preserve the preferences for our video speeds? We had this feature before, and have been losing it for quite while. Cheers,

kevinbui's avatar
kevinbui's avatar LaryAI2mos agoFeedback
1
1
Last reply by LaryAI 2mos ago
Armanhozyn's avatar

Is it worth it to learn all the courses and coding when AI can make the production level application

Wait I am not taking about like AI would solve a code problem or fix it. I am talking according to business, If I code an application humanly, Its gonna take too much time, When a non coder who mabe barely knows coding but he Understands how the application works, He make the whole production level application without coding a single line. So here is my question, Is it worth it

Armanhozyn's avatar
Armanhozyn's avatar kevinbui2mos agoAI
14
28
Last reply by kevinbui 2mos ago
vincent15000's avatar

How to use Envoy with an SSH port other than 22 ?

Hello, I'm searching how to use envoy with an SSH port other than 22. Any idea ? Thanks for your help. V

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoDevOps
4
2
Last reply by vincent15000 2mos ago
vincent15000's avatar

NativePHP / Jump ?

Hello, I want to test NativePHP with Jump. I have installed the required packages, then I run this command in the console. The browser opens to display a QRCode, but I don't see any QRCode, instead I get this error in the dev tools. (index):1 Unsafe attempt to load URL http://localhost:3000/jump/qr from frame with URL chrome-error://chromewebdata/. Domains, protocols and ports

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoLaravel
3
2
MikelMedina's avatar

Single users table with intermediate trainer-client relationship table in Laravel — good practice?

I'm building a Laravel Sanctum API project for my portfolio. The project is a system where users and trainers exist, and it basically allows trainers to create workout plans for users. Without going too deep into the workout side of things, here's my situation: I was planning to create a single users table to authenticate everyone with a bearer token, and create an intermediate

MikelMedina's avatar
MikelMedina's avatar martinbean2mos agoLaravel
7
2
Last reply by martinbean 2mos ago
Sadman's avatar

What is the best SMTP server for ensuring bulk marketing emails reach the Gmail inbox instead of the spam folder?

I've tried ServerSMTP and AWS SES, with all configurations correctly set up, but the emails still ended up in spam.

Sadman's avatar
Sadman's avatar Richard5552mos agoFeedback
17
1
Last reply by Richard555 2mos ago
ahoi's avatar

Laravel Telescope does not track HttpClient calls fired from tinker/jobs...

Hi there, I am not sure, why - in my app, telescope does not track external API calls when I use tinker to fire the call: Http::get("http://example.com/users/1")->body(); is tracked, if I call it via route entry, but not, if sent via Tinkerwell or any other way. What am I missing?

ahoi's avatar
ahoi's avatar Glukinho2mos agoLaravel
2
1
Last reply by Glukinho 2mos ago
ahmedde's avatar

How to detect memory leak source with Octane?

Hi, We're running a production app using Octane (Swoole) on Forge. I have been getting few Sentry reports on memory leakage exceptions once every few days on random API routes. The exceptions are neither happening on consistent times or routes, which makes this difficult for me to find the piece that break the puzzle. Example: Allowed memory size of 268435456 bytes exhausted (t

ahmedde's avatar
ahmedde's avatar Aterniad2mos agoLaravel
1
14
Last reply by Aterniad 2mos ago
jswoolf01's avatar

How does wasChanged work with related tables?

I'm writing some complex validations for an inventory table - a table of products. This Products table has a couple of related child tables. I'd like to save some resources by only running validations for fields that have changed. Scenario: I edit Product A, change a couple of fields in the Product record and also change some of the data that's stored in one of the child tabl

jswoolf01's avatar
jswoolf01's avatar JussiManni...2mos agoLaravel
3
1
Last reply by JussiMannisto 2mos ago
vincent15000's avatar

Migration with geography ?

Hello, How to save coordinates as a point type ? $table->geography('coordinates', subtype: 'point', srid: 4326)->nullable(); In the database there is only one field and I need to save the latitude and the longitude. In a form, how to retrieve the coordinates ? Do I need 2 fields ? 1 field ? I really don't know how to do. Do I have to cast the coordinates field as a JSON

vincent15000's avatar
vincent15000's avatar DigitalArt...2mos agoLaravel
3
20
Last reply by DigitalArtisan 2mos ago
an.leclerc's avatar

Problem with dispatch on parent component

Hi, I've a component (lead-not-assigned.blade.php) <?php use App\Enums\DossierCaseEnum; use App\Models\DossierModel; use Livewire\Attributes\Computed; use Livewire\Attributes\Layout; use Livewire\Attributes\On; use Livewire\Attributes\Title; use Livewire\Component; new #[Layout('layouts::admin.app'), Title('Lead not assigned')] class extends Component { use \Livewire

an.leclerc's avatar
an.leclerc's avatar an.leclerc2mos agoLivewire
3
1
Last reply by an.leclerc 2mos ago
ehabafia's avatar

Horizon in production

I did install Laravel horizon, and did php artisan vendor:publish and published the HorizonServiceProvider. I added few emails to the gate to allow me to access horizon in production. Gate::define('viewHorizon', function ($user = null) { return in_array($user->email, [ '[email protected]' ]); }); which still gave me a 403 Forbidden, then I start playing with it

ehabafia's avatar
ehabafia's avatar aldesrahim2mos agoLaravel
3
3
Last reply by aldesrahim 2mos ago
jovanlopez's avatar

FACEBOOK LEAD ADS

Hello everyone! I am currently working on a CRM with Laravel and I am trying to obtain leads through a webhook on Facebook. I have followed all the steps outlined in the official Facebook documentation, but unfortunately, I am not able to obtain any leads. I am not sure what the issue could be.

jovanlopez's avatar
jovanlopez's avatar Apostlethe...2mos agoLaravel
1
1
Last reply by Apostlether 2mos ago
FireBlade's avatar

Bundled Alpinejs not working in Laravel Docker

I have a fresh new Laravel 9 Jetstream-Livewire app with the node_modules and vendor folders deleted. The NGINX container Dockerfile looks like this: FROM node:22-alpine AS builder WORKDIR /app # Copy Laravel application code COPY ./src/. /app RUN npm install && npm run build FROM nginx:1.21-alpine COPY --from=builder /app/public /var/www/public COPY ./nginx/nginx

FireBlade's avatar
FireBlade's avatar abdul_rehm...2mos agoCode Review
6
1
Last reply by abdul_rehman333 2mos ago
kianaassenheimer's avatar

How to test SelectColumn in a Filament table?

I am using Filament and I am trying to test my SelectColum that when I change a role, that user's role is updated in the database. From the testing docs https://filamentphp.com/docs/3.x/tables/testing#select-columns , it doesn't seem like this type of functionality is testable through a method much like a filter can be applied with ->filterTable(... I'm wondering if there is

kianaassenheimer's avatar
kianaassenheimer's avatar ImpactLab2mos agoTesting
5
1
Last reply by ImpactLab 2mos ago
jesse_orange_newable's avatar

Issue with Laravel 12 on IONOS hosting - no cookies

I have two apps running on the same server behind a Webscale proxy (Apache). A Laravel 11 app works correctly, returning a proper 302 with session cookies. My new Laravel 12 app returns 200 OK with no cookies and no Location header — just the Symfony HTML redirect fallback body. The redirect itself is correct (the Microsoft OAuth URL is properly generated), but the response cod

jesse_orange_newable's avatar
jesse_orange_newable's avatar vincent150...2mos agoAI
2
1
Last reply by vincent15000 2mos ago
darius92's avatar

Request rules validation is very slow

My request have array of ~2000 items. I want to use validation rules, but its super slow. class MyItemsRequest extends FormRequest { public function rules() { return [ 'items' => 'required|array', 'items.*.id' => 'required|integer', 'items.*.meta_data' => 'required|string', 'items.*.stuff' => 'sometimes|nu

darius92's avatar
darius92's avatar vincent150...2mos agoRequests
4
1
Last reply by vincent15000 2mos ago
vincent15000's avatar

Eloquent eager loading

Hello, Hmmm ... I have this code. public function index() { return Inertia::render('Creator/Quests/Index', [ 'quests' => fn () => Quest::orderBy('name')->get()->toResourceCollection(), ]); } When I check in the backend (with dd()) the content of the query, it returns only the quests without any step as the steps aren't loaded. public function toArra

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoEloquent
10
1
Last reply by vincent15000 2mos ago
El Klo's avatar

Filament v4 upgrade script keeps the old folders

I ran the v3 to v4 upgrade script for filament to change the directory structure. So let's say i had an ArticleResource/Pages folder in my V3 structure, the script changed that to Articles/Pages. This is done as it should be for 98% of the resources, however, all the old (empty) folders are still in my structure? Is this supposed to happen? I have a lot of resources so i want t

El Klo's avatar
El Klo's avatar LaryAI2mos agoFilament
1
2
Last reply by LaryAI 2mos ago
Indra7667's avatar

Migration and seeding for big master data

I have a national-scale master data of my country's cities, districts, and villages. There's 80k rows on the village table. I need to make the migration for a project, but inserting all 80k of rows into seeder doesn't seem realistic to me. On the other hand, if I add the table directly into the DB, the table will be gone every time I hit migrate:fresh. How should I insert the

Indra7667's avatar
Indra7667's avatar Indra76672mos agoLaravel
2
1
Last reply by Indra7667 2mos ago
LordZeus's avatar

Is there a way to use certificates for auth?

I'm not brand new to Laravel, but I'm learning by making my own projects. I wanted to create a local application for myself, but to make my logins more secure, I wanted to have my laravel site prompt me for my/a certificate, and if it matches the saved certificate, allow access to an admin panel. The only thing I've been able to find regarding this is an old Laravel 5 implement

LordZeus's avatar
LordZeus's avatar martinbean2mos agoDevOps
2
1
Last reply by martinbean 2mos ago
vincent15000's avatar

Code architecture for adding easily new challenge types (scalability)

Hello, I develop an web application for treasure quests. At the beginning, I will have some challenge types. If I want to add a new challenge type in the future, I don't want to modify the code, just add a new class to add the new challenge type. I asked the AI and it gave me some example, but it seems to be quite complex to just add a new challenge type. What do you think abou

vincent15000's avatar
vincent15000's avatar vincent150...2mos agoDesign
3
1
Last reply by vincent15000 2mos ago
vincent15000's avatar

How to resolve a dynamic component ?

Hello, I have to load dynamically some components. I have define a component resolver. import { defineAsyncComponent } from 'vue'; const components = import.meta.glob('@/Components/Challenges/**/*.vue'); export const resolveComponent = (view) => { const componentPath = `@/Components/${view}.vue`; const loader = components[componentPath]; if (!loader) {

vincent15000's avatar
vincent15000's avatar imranbru2mos agoVue
2
1
Last reply by imranbru 2mos 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.