Latest Articles

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

Laravel 5 global variable in all views file

Here, i will let you know how to set global variable in laravel 5 application. In this article i will set globle variable two way on simple view share and another using composer view share. As we know, every webiste or project there are several things are comman and access it in every page like footer text, logo, site title etc. So it is necessary to define it one time and access it on all views .....

Posted On July 16, 2017

Disable timestamps(created_at and updated_at) in Laravel 5 Model

As we know, Laravel added two field "created_at" and "updated_at" with timestamps. So when new record will be add then created_at and updated_at columns update current timestamps updated and when update then update then updated_at column. This is a default by laravel. But sometime, we dose not need to add created_at and updated_at column. So we have to stop add update those column, otherwise it r.....

Posted On July 11, 2017

Search comma separated value using find_in_set() in Laravel 5 Example

Here is a crazy example today, how to use find_in_set() mysql function in laravel query builder. If you need to add tags or something that store as comma separated values in database column, then you can simply store but if also need to search then it can be hard. Like if you have posts table with tags column you simply store data like "laravel,php,html" etc comma separated string then how you fo.....

Posted On July 9, 2017