Browse Forum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

M1chael30's avatar

New to Laravel

Share me some tips to improve my coding in Laravel.

M1chael30's avatar
M1chael30's avatar kupce4mos agoLaravel
7
17
Last reply by kupce 4mos ago
jwhoami's avatar

How to format currency in laravel

Hi, In my .env, my locale is set as APP_LOCALE=es However, when I format the currency, I get the following 8,00 US$ when I set the locale to 'us', I get the following $ 8.00 How can I maintain my locale as es and format the number in us format Thanks

jwhoami's avatar
jwhoami's avatar martinbean4mos agoLaravel
8
2
Last reply by martinbean 4mos ago
adamnet's avatar

Parse XML data into model

Hello everyone. Hello everyone. Does anyone have practical knowledge on how to import xml data into a database? Any example/instructions would be valuable.

adamnet's avatar
adamnet's avatar jlrdw4mos agoLaravel
5
1
Last reply by jlrdw 4mos ago
Nuno_O's avatar

Read values from one OPC UA server, in Laravel

Hello. It is possible to read values from one OPC UA server, in Laravel? Thank you.

Nuno_O's avatar
Nuno_O's avatar GianfriAur4mos agoLaravel
1
2
Last reply by GianfriAur 4mos ago
oliverbusk's avatar

Vite manifest not found - deployment on Forge

I am trying to deploy a brand new Laravel 9 site with Vite. I have the site running locally just fine, and the deployment is running via Laravel forge using the default deployment script: cd /home/forge/default git pull origin $FORGE_SITE_BRANCH $FORGE_COMPOSER install --no-interaction --prefer-dist --optimize-autoloader ( flock -w 10 9 || exit 1 echo 'Restarting FPM...';

oliverbusk's avatar
oliverbusk's avatar stuartcusa...4mos agoForge
16
8
Last reply by stuartcusack 4mos ago
TimeSocks's avatar

Defining a table's relationship ... to itself

I have an Events table containing event information, and I want to show a list of related events. I have a table consisting of the Event Ids and a 'Related' Id, which is of course simply the Id of another event. Each event can have many related events. I am going around in circles trying to work out how to relate them though. How can I do it?

TimeSocks's avatar
TimeSocks's avatar martinbean4mos agoEloquent
23
1
Last reply by martinbean 4mos ago
kupce's avatar

Organising Custom UI Components

What is the recommended approach to maintain custom built UI components and be able to show available UI components to the designer to build/ improve a page upon those available resources? What are your approaches ? Currently all features/component I construct from top of my head, non visual. I just find them in the app. ( Non scalable ) I am thinking of building a visual rep

kupce's avatar
kupce's avatar kupce4mos agoDesign
8
28
Last reply by kupce 4mos ago
djallits's avatar

Microseconds with Laravel's Timestamp

PHP 5.6.10 check! MYSQL 5.6.19 check! LARAVEL 5.1.7 check! Timestamps with precision FAIL I know it has been asked before, but I have yet to see any one say it cannot be done. Can someone point me in the right direction please? Thank you

djallits's avatar
djallits's avatar ScotchDesi...4mos agoLaravel
4
2
Last reply by ScotchDesign1 4mos ago
MohamedKamal's avatar

Slugs in SEO

I Know that slugs make better SEO But I am confused about using slugs in api endpoints that front end app will use it, how it can improve SEO while it doesn't appear in web browser? and just front end using it to deal with database Anyone can help me to understand it?

MohamedKamal's avatar
MohamedKamal's avatar CapPerez4mos agoLaravel
4
1
Last reply by CapPerez 4mos ago
kaiserkais's avatar

inertia navigation take too long

hi guys im using inertia with react, this problem is new, never happened before. when i navigate in some of my pages it is very slow and when i check the network tab in the console, i see that the resource for the get request is too big like 5MB and it take 42 seconds its like it take too long to get the data from mysql, but not in all pages please check the image https://ibb.c

kaiserkais's avatar
kaiserkais's avatar JussiManni...4mos agoLaravel
2
2
Last reply by JussiMannisto 4mos ago
ahmed_abdalbaky's avatar

Download Issue in the laracast websit

there are problrm in download the vidoes it redirect to another page and with dummy name for the video with large size please fix it thanks

ahmed_abdalbaky's avatar
ahmed_abdalbaky's avatar LaryAI4mos agoFeedback
1
1
Last reply by LaryAI 4mos ago
hsehjal's avatar

Using Laravel Horizon with Upstash Redis - Any Gotchas?

Hi everyone, I'm looking into using Upstash Redis (Serverless) to power Laravel Horizon for a new project. Based on the Laravel Documentation - "Horizon is not compatible with Redis Cluster at this time."; Furthered researched and found that Horizon has some specific requirements regarding Lua scripts and doesn't typically play well with Redis Clustering. Since Upstas

hsehjal's avatar
hsehjal's avatar hsehjal4mos agoLaravel
0
1
Lara_Love's avatar

word SEO in Laravel

Hello . In WordPress, when creating a post, there is a place to write SEO words that cannot be seen on the post page. In Laravel, how should we hide these SEO words in the front while they increase our SEO?

Lara_Love's avatar
Lara_Love's avatar Srohen4mos agoLaravel
5
3
Last reply by Srohen 4mos ago
Chron's avatar

Default Error messages

I already know about the validation.php that holds all the default error messages for form inputs. But I also noticed there are other files with validation.php; auth.php, pagination.php, and passwords.php. How can I make Laravel use these messages as defaults?

Chron's avatar
Chron's avatar Mega_Aleks...4mos agoLaravel
4
1
Last reply by Mega_Aleksandar 4mos ago
Timothy_Makori's avatar

Laravel Based HMIS

Hello All, I have written a proposal for the development of a Health Management Information System that will run in our hospital once completed, with possible integrations to all laboratory machines and imaging. Advice how capable Laravel can be so that it is not personal ideas for something that might not work. The specific technologies we intend to use include: Backend: Lara

Timothy_Makori's avatar
Timothy_Makori's avatar Timothy_Ma...4mos agoDesign
2
10
Last reply by Timothy_Makori 4mos ago
auau012's avatar

Laravel to create HMS hotels management system

please guide me i want to create new HMS. can i divide it to like 4 parts, front office, reservation, housekeeping and other, each part like individual website with its database and connect all this database to each other without any problems? or can i make it all together and what is solution if it is too slow?

auau012's avatar
auau012's avatar CapPerez4mos agoGeneral
10
1
Last reply by CapPerez 4mos ago
tarcisiodev1's avatar

Laravel Tailwind tables (like Yajra, no Livewire)

Good evening, everyone! I’m looking for recommendations for libraries or packages to create tables in Laravel using Tailwind CSS. Previously, I used Yajra Laravel DataTables with Bootstrap, but now I want to switch to a solution that works well with Tailwind and, preferably, doesn’t rely on Livewire. Does anyone have suggestions for packages or approaches that can replace Yajra

tarcisiodev1's avatar
tarcisiodev1's avatar jlrdw4mos agoLaravel
1
2
Last reply by jlrdw 4mos ago
birdietorerik's avatar

Route::middleware('auth:sanctum') problem

Hi! Making a Laravel application using Laravel 12.x and Vue3 Have big problem with -> Route::middleware('auth:sanctum') api.php <?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\Api\AuthController; use App\Http\Controllers\Api\ChurchController; use Illuminate\Support\Facades\Auth; use Laravel\Sanctum\PersonalAccessToken; use App\Models\User; use Illumi

birdietorerik's avatar
birdietorerik's avatar quintinmor...4mos agoLaravel
2
5
Last reply by quintinmorrow 4mos ago
NuOrder's avatar

How to sort Schools by eloquent courses promo ASC , price ASC and also all courses as promo_price ASC , price ASC

Hello, Dear community people, this is my first post .. I was looking for answers here and other internet posts and founds some tips but no one works. I will describe how SQL data works and what I need to do. Parent table is: "schools" School model got method: public function courses(): hasMany { return $this->hasMany(SchoolCourse::class); } Schools has many &qu

NuOrder's avatar
NuOrder's avatar Jsanwo644mos agoEloquent
3
1
Last reply by Jsanwo64 4mos ago
Jsanwo64's avatar

Page Expire Pretty Fast

Is anyone else experiencing a page expiration issue when participating in discussions? I can open a discussion and type my response, but once I submit it, a “page expired” popup appears.

Jsanwo64's avatar
Jsanwo64's avatar Jsanwo644mos agoFeedback
4
1
Last reply by Jsanwo64 4mos ago
Abhi324's avatar

Unique Nickname during registration (automatically - no user input)

Hello , I need some help with a small issue . When i create a user , i am also creating his profile at the same time and setting his nickname.. The nickname is a combination of the first and last name . However i need the nickname to be unique . Since this is done automatically at registration , i can't ask the user to change it . basically Nick = firstname.lastname During th

Abhi324's avatar
Abhi324's avatar fredricrho...4mos agoLaravel
2
2
Last reply by fredricrhoads 4mos ago
owlondrugsmobile's avatar

How make crud page with modals?

How to make modal windows based on inertia v2 correctly? I tried making them with an ajax request. I also tried to use the philosophy of inertia and return all the page data through the passes, using the same page for rendering. But I still can't figure out how to simplify this process.

owlondrugsmobile's avatar
owlondrugsmobile's avatar owlondrugs...4mos agoInertia
7
1
Last reply by owlondrugsmobile 4mos ago
mhdev3's avatar

Cashier - customer name updates

Hello, I'm using Laravel Cashier 15.7.1. I'm facing an issue where the customer name in Stripe is updating to be the name of the Cardholder, not the name of the Billable (which in my case is a Company). I create the company in Stripe as a customer when they get added to my database; $this->company->createAsStripeCustomer([ 'name' => $this->company->name,

mhdev3's avatar
mhdev3's avatar mhdev34mos agoLaravel
5
2
Last reply by mhdev3 4mos ago
Developer654079525's avatar

MySQL sync

What is the prefered options of syncing a local MySQL db with the production one that sits on a shared hosting? We are using GIT, ssh and Composer to sync the framework, but the MySQL sync is a bit of a pain. Currently, we are using PHPMyAdmin to manually export on the dev machine and drop and import on a live hosting account. How can this be automated so that we don't have tha

Developer654079525's avatar
Developer654079525's avatar Snapey4mos agoLaravel
14
37
Last reply by Snapey 4mos ago
andersb's avatar

Passing attributes from blade component to subcomponents

Does anyone know how to pass attributes from one blade component to another component used in the first component? Simplified example Usage: <x-search class="text-gray-800" value="example" /> // Should render: <input class="rounded-md text-gray-800" placeholder="Search ..." name="search" autocomplete="off&q

andersb's avatar
andersb's avatar jaeggid4mos agoLaravel
6
2
Last reply by jaeggid 4mos 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.