Recent Posts

30 Laravel Eloquent Tips & Tricks

Hi, today I’m going to share with you some tips and tricks in Laravel Eloquent ORM. There are a lot of semi-hidden functions and less-known ways to achieve more with it. Let’s dive in:   1- The Exists Property The exists property is used to show whether the ...

Laravel Timestamps tricks

Hi guys, today I’m going to share with you some timestamp tricks in Laravel. Let’s dive in: 1- Disable Timestamps If your DB table doesn’t contain timestamp fields created_at and updated_at, you can specify that Eloquent model wouldn’t use them, with $timestamps = false property.   2- Change Timestamp Column ...

laravel https redirect

Force https redirect in Laravel

In this tutorial, i'll show you how to force https in your laravel application. HTTPS helps keep your browsing safe by securely connecting your browser with the websites you visit

Laravel .env variable in Blade and Controller

In this artical, i will show you how to get config variable (env variable) in view file laravel. we can get env variable value in controller and blade file too. we can simple print env file variable by using env() helper.