laravel 2 weken geleden

Laravel Routes, Middleware, Validation and more

As a part of my new Laravel mentorship program in my home country Lithuania, I started doing code reviews of my student developers. Here's a 20-minute example that I decided to publish on Youtube - should be useful to you guys, too.

00:00​ - Intro

01:33​ - Route Grouping

04:08​ - Shorter Middleware Class

07:01​ - Middleware with Parameters

09:06​ - Migrations with Foreign Keys

10:32​ - Controller Index Refactor

14:03​ - Code Styling

14:46​ - Store and Validation

18:00​ - Update and Route Model Binding


Related resources:

- Route grouping: https://laravel.com/docs/8.x/routing#route-groups

- Middleware with Parameters: https://laravel.com/docs/8.x/middleware#middleware-parameters

- Migration foreign keys: https://laravel.com/docs/8.x/migrations#foreign-key-constraints

- Laravel Validation with Form Requests: https://laravel.com/docs/8.x/validation#form-request-validation

- Route Model Binding: https://laravel.com/docs/8.x/routing#route-model-binding


- Eloquent "When" method: https://laraveldaily.com/less-know-way-conditional-queries

- Code Styling and PSR-12: https://blog.quickadminpanel.com/psr-2-and-psr-12-why-we-need-standards-and-how-to-apply-them/


- - - - -

Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel​

Enroll in my Laravel courses: https://laraveldaily.teachable.com​

Use my Livewire components: https://livewirekit.com

Laravel
laravel
There are no comments yet.

0
# Web Development

Laravel Advanced | Jobs, Queues & Events - Part 1

Coder's Tape 1 week geleden
0
# Web Development

Ultimate Laravel Performance Optimization

The Editor 3 weken geleden
0
# Web Development

Englightn | Laravel Project Health Check in Seconds

Laravel 1 maand geleden
0
# Web Development

New in Chrome 88 | Manifest v3, aspect-ratio, digital goods...

Google Chrome 1 maand geleden
0
# History and Archaeology

More Lost Relics in the Great Pyramid

Ancient Architects 1 maand geleden
0
# Web Development

Making the web more visual with Web Stories

Google Chrome 2 maanden geleden
0
# Web Development

New in Chrome 87 | Camera PTZ | SW Range Requests and more!

Google Chrome 3 maanden geleden
0
# Web Development

Laravel | Crash Course 2020

Traversy Media 3 maanden geleden
0
# Web Development

New in Chrome 86 | File System Access, WebHID and more!

Google Chrome 4 maanden geleden
0
# Web Development

Laravel Livewire: Parent-Child Form Example

Laravel 4 maanden geleden
0
# Web Development

Laravel Livewire Introduction

Laravel 6 maanden geleden
0
# Explicit Content

Beirut Explosion | More then 100 dead | Thousands hurt

The Guardian 6 maanden geleden
0
# Web Development

5 Tips for Supercharged Laravel Eloquent Queries

Laravel 7 maanden geleden
0
# Health

Coronavirus 01-06 | More then 6.200.000 cases, 374.000 dead

Bloomberg 8 maanden geleden
0
# Health

Coronavirus 31-05 | More then 6.100.000 cases, 370.000 dead

NBC News 8 maanden geleden
0
# Health

Coronavirus 30-05 | More then 6.000.000 cases, 366.000 dead

Bloomberg 8 maanden geleden
0
# Health

Coronavirus 29-05 | More then 5.800.000 cases, 361.000 dead

NBC News 8 maanden geleden
0
# Health

Coronavirus 28-05 | More then 5.700.000 cases, 355.000 dead

Vox 8 maanden geleden
0
# Health

Coronavirus 27-05 | More then 5.600.000 cases, 350.000 dead

NBC News 8 maanden geleden
0
# Health

Coronavirus 26-05 | More then 5.500.000 cases, 346.000 dead

CBS News 8 maanden geleden
0
# Health

Coronavirus 25-05 | More then 5.400.000 cases, 342.000 dead

BBC News 9 maanden geleden
0
# Health

Coronavirus 24-05 | More then 5.300.000 cases, 339.000 dead

Vox 9 maanden geleden
0
# Health

Coronavirus 23-05 | More then 5.200.000 cases, 336.000 dead

Today 9 maanden geleden
0
# Health

Coronavirus 22-05 | More then 5.100.000 cases, 333.000 dead

The New York Times 9 maanden geleden
0
# Health

Coronavirus 21-05 | More then 5.000.000 cases, 330.000 dead

NBC News 9 maanden geleden
0
# Health

Coronavirus 20-05 | More then 4.900.000 cases, 327.000 dead

The Verge 9 maanden geleden
0
# Health

Coronavirus 19-05 | More then 4.850.000 cases, 324.000 dead

BBC News 9 maanden geleden
0
# Health

Coronavirus 18-05 | More then 4.800.000 cases, 320.000 dead

Vice News 9 maanden geleden
0
# Health

Coronavirus 17-05 | More then 4.700.000 cases, 316.000 dead

Deutsche Welle 9 maanden geleden