HDTuto.com

Latest Articles


How to get http hostname in Laravel?

A very few days ago i was trying to get hostname in my laravel 5.7 app. i read whole document of request but i didn't get where to get host name in my controller. But i found solution for that we can easily get http host name from request object and helper that way you can easily get domain name or sub domain name too. request provide two methods to get hostname as getHttpHost() and getHost(). Y.....

Posted On November 16, 2018

Laravel 5.7 disable registration example

In this example, i would like to share with you how to disable registration route in laravel 5.7 application. you can also remove Authentication Routes, Password Reset Routes and Email Verification Routes from route file. Actually, few days ago i was working on my laravel 5.7 application and i need to remove register page for customer and i used default Auth::routes() in my web.php file. I used l.....

Posted On November 15, 2018

Laravel 5.7 - Multiple Authentication Example

Hey Guy, Today topic is multi auth in laravel 5.7 application. I will show you how to integrate multiple authentication in laravel 5.7 project. sometime we require to make two septate login one for user and another for admin. Multiple authentication will required when you are provide service like real estate website in laravel 5.7. If you work on large web application then you mostly prefer to di.....

Posted On October 25, 2018

Form Validation Example with Laravel 5.7

Here, we will learn how to create form validation with error message in laravel 5.7 application. form validation is a primary requirement of every project. laravel 5.7 provide very simple way to use form validation like required, password, same, eamil, number, array, file, mime types etc. Here, i am going to show you very simple example of form validation so, you can simply use in your laravel 5......

Posted On October 19, 2018

JQuery Ajax Post Request Example in Laravel 5.7

we are all familiar with ajax post and get request and i think we also use ajax request with jquery many times and many project may be. But in this project i will show you how to use jquery ajax request in laravel 5.7 application. You can simple implement ajax post request with pass form data and you can access post data to controller. You have to just do three things to understand how to use aja.....

Posted On October 17, 2018