HDTuto.com

Latest Articles


Laravel - Remove Public from URL using htaccess

Are you using shared hosting? then i know you fetch problem with public in your url path. Yes, if you have laravel project and use shared hosting then you go on public folder and then run index.php file. So in your root doamin with public path is not good as for SEO too. So how we can remove public from url in laravel?. Actually i had also problem in my laravel 5.6 application and i need to uploa.....

Posted On July 4, 2018

Laravel - Drop column if exists using migration

it is a very small point for database. as know well for laravel then we always use migration for creating table or add new column in table, also if you need to remove column. but it is good way if you check column if exists or not before drop column in migration. so you can it using schema method. You can see we can use hasColumn(), as you can see below: <pre> Schema::hasColumn(table_name, column.....

Posted On June 24, 2018

How to call function on page load in Vue JS?

If you are finding way to run function when page load then, this tutorial will help to do that. sometimes you may require to write some code or function code on vue js and you must require to load when your page is load. so we can do it using created parameter in vue js. So let's just see bellow full example code. <strong>index.html</strong> <pre> <!DOCTYPE html> <html> <head> .....

Posted On June 24, 2018

How to get current URL in Vue JS?

Are you wanted to get current url in your Vue js app ? If yes then you are a right place. if you are working with plan vuejs without using vue js route then you can get with window object. but if you are using vue js route then you can also get with route object. so it is a very simple way we can get current url. I give you bellow both example, just see it and ut it those you require... <strong>i.....

Posted On June 24, 2018

Laravel 5.6 - Preview and Crop Image Before Upload using Ajax

A few days ago i was working on my php laravel 5.6 new project. i exactly remember i was working on user profile page and i need to add image upload on my user profile page. but i know image uploading is simple with laravel 5.6, but i also need to add crop and preview image before save image in folder. I was thinking how can i do it easily, i decide to do with my own jquery but after write some c.....

Posted On June 24, 2018