HDTuto.com

Latest Articles


Laravel - How to handle "No query results for model" Error

Laravel - How to handle "No query results for model" Error Yesterday, I was just working on my restful API with User model and I found following error on show method: "No query results for the model [App\\User] 1", first I search on google about No query results for a model issue and fix that. but I want to understand why this error comes. i found why No query results for the model is an error on.....

Posted On March 14, 2018

Laravel 5.6 - Get last inserted id using save(), create() and insertGetId()

If you have experience with PHP Project developing then you know we almost require to get last id. so if you need to get last insert id then you can get save(), create() and insertGetId() method in laravel 5.6 application. here i will give you three way to get last inserted id or object in laravel 5.6 application. So in this small article i will give you three example for getting last insert id:.....

Posted On March 13, 2018

VueJS - How to set maxlength for textarea?

Hi Dev, here I will let you know how you can ser countdown with remaining character count in textarea with VueJS application. you can simply set maxlength validation in textarea in VueJS. i gave you a full and simple example for maxlength validation example. So If you want to check with your local then you can copy bellow html file and test it with your local system. i used CDM js and css file s.....

Posted On March 12, 2018

Laravel 5.6 - Excel and csv import export using maatwebsite example

Hi, Web Artists, In today’s Tutorial, I will show you code of How to import and export data in CSV and Excel file in Laravel 5.6 application. This example is simple laravel 5.6 import excel file to the database using maatwebsite. you need to just follow few steps and get a full example of import CSV file in laravel 5.6 application. We will use maatwebsite composer package for import-export .....

Posted On March 10, 2018

PHP - How to remove double quotes from json array keys?

Some days ago, I was just working on my old PHP project and I need to remove double quotes from JSON array keys because I want to add it to my chart. first of all, i just print my array but it shows as a string with double quotes in array keys. So chart does not appear on my dashboard. I just found what-what was an issue but at last, i just found what is an issue after a long time. It's crazy when.....

Posted On March 9, 2018




Blog Search