Latest Articles

Laravel generate random unique string example

Sometimes, we require to generate random string for token or something other login in laravel 5 application. if i remember exactly, 1 year ago i was working on my laravel 5 application at that moment i need to create unique string. I search on google and laravel docs i found str_random() helper of php laravel framework to generate random string, we need to just give then number as argument and i.....

Posted On July 25, 2017

How to fix - "Illegal string offset 'w:compatSetting'"

Yesterday, i was working on my php laravel 5 application and i installed PHPOffice/PHPWord package and trying to use it in controller. But when i run my project and see i got following error : "Illegal string offset 'w:compatSetting'" Even i generate docx file, i thought why it's come event file is created successfully. I try to understand deeply but i didn't get well. However i found temporary s.....

Posted On July 21, 2017

PHP Laravel select2 js example from scratch

Here, I will let you know very simple example of generate select box using select2 jquery plugin in laravel application. Bootstrap provide very simple drop-down box. But if you want to add search with select box then you should use select2 js plugin. Select2 plugin provide us select drop-down box with search value and there are several feature available in select2 js. So in this example i am goin.....

Posted On July 19, 2017

Jquery .toFixed(2) is not a function error - Solved

When i was working on core php project and i need to work with float value. Like i require to fixed decimal point with two digit after point. So i did search on google and found the tofixed() of javascript. But when i try and checked on my fire but, it say tofixed() is not a function. I thought what was wrong and i did try many way. However, Finally i got what is issue and found the best solution.....

Posted On July 17, 2017

Laravel 5 check if file uploaded or not using hasFile or isValid

It is very easy to check if uploaded file or image empty or not if you are using core PHP. But as we know laravel 5 provide us object of file, So we can not determine using empty(). However, we can simply do it using hasFile() and isValid() of laravel predefine. So i am going to give you basic example of both function one by one. So let's simply see both example and use it. <strong class="step-up.....

Posted On July 16, 2017

Blog Search