BEST WAY to Build Resources in Laravel Nova | Laravel Nova for Beginners | Resources Nova
HTML-код
- Опубликовано: 30 июл 2024
- This video will show you how you could build resources in Laravel in the correct way. The primary features of building an admin panel in Laravel Nova are most of the times defined inside Resources, which handles all CRUD operations that are mostly defined inside a Resource Controller. We will dive into the correct way to build Resource Classes, different field types, shortcuts you could add to your Resource overview, making Resource Fields required, adding Readonly fields, and way more.
📚 New Udemy Course
If you're looking to level up your Laravel skills, my new course "Udemy Migirations, Seeders, Factories, Query Builder, Eloquent & Relationships" is the perfect opportunity. Learn the essential tools and techniques for building robust and scalable web applications with Laravel: www.udemy.com/course/masterin...
📲 Let’s plan a meeting
Plan a (paid) 1-hour meeting on Calendly to do portfolio reviews, code reviews resume reviews or a coaching session for Laravel. Please read the description before booking: calendly.com/codewithdary
💌 Newsletter
Sign up for my free weekly email newsletter: www.newsletter.codewithdary.com
🔥 Resources
- PHP Hosting (10% DISCOUNT): www.hostinger.com/codewithdary
- TikTok: / codewithdary
- Instagram: / codewithdary
- Twitter: / codewithdary
- Blog: blog.codewithdary.com/
- Newsletter: newsletter.codewithdary.com/
- Patreon: www.patreon.com/user?u=30307830
- GitHub: github.com/codewithdary/produ...
🔗 Useful links
- Field Types: nova.laravel.com/docs/4.0/res...
- Show / Hiding Fields: nova.laravel.com/docs/4.0/res...
📋 Table of Content
00:00 - Introduction
02:33 - Correct Way to Build Resource Classed
05:51 - Field Types / Building our First Resource
08:27 - Shortcuts on a Resource Overview
09:04 - Renaming Label on Resource
09:45 - Defining Field Types for Products
11:56 - Making Fields Required
12:49 - Changing Currency on Currency Field Type
13:20 - Readonly Fields
15:36 - Changing the Displayed Product Name
16:28 - Showing / Hiding Fields
17:50 - Building a Modal
19:22 - Adding Placeholders to Field Types
20:23 - Table Styling
21:39 - Adding Additional Information to Field Types
#laravel #php #laravelframework #laravelnova #nova
Thank you!
Just a quick note: You should never use the float / double data types for currency columns since they are imprecise and introduce rounding errors.
Use decimal (ie: 9,2) for storing the value or bigint to store it in cents.
Definitely true, thank you!
7:54 how do you navigate to the local database in PHPStorm?
Hey Dary, does Nova covers slug cases where there are two of the same titles out of the box?
No, Laravel Nova does not handle slug cases where there are two of the same titles out of the box. However, you can write custom code to handle such cases.
Pls, can you make a video on how to implement async in Laravel
Not on my agenda anytime soon, sorry.
every how many days there will be a new video
Monday, Wednesday and Friday :)
Too short 😥
It's a series so we got 10 more to go :)