0% found this document useful (0 votes)
5 views2 pages

Code That Speaks For Itself

Uploaded by

nouhaila hakmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Code That Speaks For Itself

Uploaded by

nouhaila hakmi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Code that speaks for itself

Simple, elegant syntax powers amazing functionality. Every feature has been
considered to create a thoughtful and cohesive development experience.

 Authentication
 Authorization
 Eloquent ORM
 Database migrations
 Validation
 Notification and mail
 File storage
 Job queues
 Task scheduling
 Testing
 Events and WebSockets
Authentication

1Add an authentication middleware to your Laravel route


 web.php
1Route::get('/profile', ProfileController::class)
2 ->middleware('auth');
2You can access the authenticated user via the Auth facade
 UserController.php
1use Illuminate\Support\Facades\Auth;
2
3$user = Auth::user();
Read Authentication docs
Frontend

Frontend for any stack


Whether you prefer a traditional PHP backend, a modern frontend using Laravel
Livewire, or can't get enough React and Vue, Laravel allows you to deliver highly
polished and maintainable applications in a fraction of the time.

 Inertia
 Livewire
 SPA and Mobile Apps
 UserController.php
 Users.jsx
1class UserController
2{
3 public function index()
4 {
5 $users = User::active()
6 ->orderByName()
7 ->get(['id', 'name', 'email']);
8
9 return Inertia::render('Users', [
10 'users' => $users,
11 ]);
12 }
13}
Inertia
Modern Monoliths

Laravel Inertia supercharges your Laravel experience and works


seamlessly with React, Vue, and Svelte. Inertia handles routing and
transferring data between your backend and frontend, with no need to build
an API or maintain two sets of routes.
Read Inertia docs

You might also like