Laravel Tricks

Browse latest tricks and tips on Laravel.

Magni omnis omnis qu

Quae ea laboriosam, . ...
published on : 11 hours ago 12 Comments

Laravel : Générer un QR code avec simple-qrcode

Un guide pour créer un code QR (Quick Response) avec le package simplesoftwareio/simple-qrcode dans un projet Laravel. ...
published on : 21 hours ago 12 Comments

Laravel : Importer, exporter les données en Excel ou CSV avec spatie/simple-excel

Un guide pour importer et exporter les informations d’une base de données vers un fichier Excel (.xlsx) ou CSV (.csv) avec le package laravel spatie/simple-excel. ...
published on : 3 days ago 12 Comments

Laravel Socialite : Authentification OAuth avec Google, Facebook et Github (Social login)

Un guide d'utilisation du package laravel/socialite pour connecter et/ou inscrire les utilisateurs avec un compte Google, Facebook, Github, ... : Social login ...
published on : 15 hours ago 12 Comments

Laravel Admin Panel - Fjord

Hello,Me and my cousin built an open source Admin-Panel/CMS for Laravel-Projects. One year ago we started with our first prototype. Just now we released the second version of the p ...
published on : 42 minutes ago 12 Comments

php artisan serve

php artisan serve is a command by laravel framework to start the php development server. After running this command it invokes PHP builtin server. ...
published on : 10 hours ago 12 Comments

Laravel run artisan command from controller

In this trick you will see how to run artisan command from laravel controllerIn routes/web.phpRoute::get('/run-artisan-command-xyz','MyController@runArtisanCommand'); In your Cont ...
published on : 56 minutes ago 12 Comments

Check user type in laravel

Add a type field in your auth table, once you added it save user type and check user type in Laravel using below code\Auth::user()->type // Returns logged in user typeRedirect u ...
published on : 22 hours ago 12 Comments

Get user id laravel blade

Whenever it is required to get user id of loggedin user in Laravel. Use Auth facade, Auth facade is available every where if auth module is enabled in Laravel.In laravel balade use ...
published on : 22 hours ago 12 Comments

Laravel get logged in user data

In this trick we are going to see how to get logged in user data in laravel. You can get logged in user data using Auth facade in laravel. Below is simple Auth facade example $user ...
published on : 4 hours ago 12 Comments