Tag : Laravel 4

ItSolutionStuff.com have tutorials for Laravel 4 tag, here you can study articles of Laravel 4 tag, Laravel 4 tag posts collection, most popular and useful tutorials of Laravel 4 tag, here you can find list of all relevant posts and example about Laravel 4 tag, we have lists of tutorials and examples about Laravel 4 tag. very simple and quick example collection of Latest Laravel 4 tag.




Laravel tokenmismatchexception in verifycsrftoken.php - Solved

Laravel tokenmismatchexception in verifycsrftoken.php - Solved

When i had started to learn laravel, i found error - tokenmismatchexception in verifycsrftoken.php when submit form POST method. I was new i can't understand what is the error. but i read docs and search google i found that i need to add laravel csrf_token as hidden parameter. csrf_token() is for s.....

By Hardik Savani | Views: 31294 | July 10, 2016 | Category : Laravel

How to remove key from array in Laravel 5?

How to remove key from array in Laravel 5?

Sometimes, we require to delete specific key from array like we have password and confirm-password field but we don't require to store confirm-password field we have to drop that key from input array, At that time we always use unset() function of PHP pre-define. But if you work on laravel then yo.....

By Hardik Savani | Views: 55839 | July 7, 2016 | Category : Laravel


How to use groupby having with DB::raw in Laravel Query Builder?

How to use groupby having with DB::raw in Laravel Query Builder?

We most probably require to use group by having because if you work on small project then it's not need to use generally. But if you work with big project like e-commerce, social or ERP level project then you may require to use having clause. having clause, we can use simply if we have to compare .....

By Hardik Savani | Views: 55677 | July 6, 2016 | Category : Laravel

Laravel - How to remove foreign key constraint using migration?

Laravel - How to remove foreign key constraint using migration?

Sometimes it can be agreeable to remove a database column that hosts a foreign key relationship, and we add wrong column with foreign key constraint on table, At that time we must remove that column from table. But we can't remove directly using dropColumn() because we did apply foreign key constr.....

By Hardik Savani | Views: 51682 | July 1, 2016 | Category : Laravel

How to generate random unique string in Laravel 5?

How to generate random unique string in Laravel 5?

Laravel provide several string helper that way we can use it easily like str_limit, str_plural, str_finish, str_singular etc. If you need to generate unique random string then you can use str_random() helper of Laravel. It is very simple and you can use easily. str_random() helper take one numeric .....

By Hardik Savani | Views: 44368 | June 29, 2016 | Category : Laravel

How can i get the path from laravel application root?

How can i get the path from laravel application root?

Laravel provide several helper to get path of public directory, app directory, storage directory and base directory. It will help to store files, read file from path and also for other from controller, view files, model etc. You can see as bellow how to get path of that directory using helper one .....

By Hardik Savani | Views: 83937 | June 27, 2016 | Category : Laravel

Solve - no connection could be made target machine actively refused it laravel

Solve - no connection could be made target machine actively refused it laravel

I fetched this issue when i was new in laravel and i clone project on my bitbucket. I was tring to run my project, but when i composer update at last i had found this error : no connection could be made because the target machine actively refused it laravel. If you also found this error then <stro.....

By Hardik Savani | Views: 33555 | June 22, 2016 | Category : Laravel

Laravel where clause with date_format() example

Laravel where clause with date_format() example

In this post, i share with you that how to use date_format() with where condition of Laravel query builder. When i was working on my project, i require to search with get only selected month and year records from created_at(timestamp) column. I was thinking how can i but i know date_format() of mysq.....

By Hardik Savani | Views: 48229 | June 22, 2016 | Category : Laravel

Group by year month example in Laravel 5 using Query Builder

Group by year month example in Laravel 5 using Query Builder

Sometimes, we have created_at column with timestamp and we wanted to get with group by with month, that way we can use for chart. However, you can do it using mysql MONTH() function. we can use DB raw with mysql function and get group by monthly records. So, you can see bellow query and use it. <s.....

By Hardik Savani | Views: 76020 | June 20, 2016 | Category : Laravel

How to do remember me function at login option in laravel 5?

How to do remember me function at login option in laravel 5?

we always use remember me option in login page, that way user don't require to login everytime. So, we would like use remember me option in our login page then you can also do it simply, because laravel provide it's own functionality. But, many developer can't do it properly i mean remember me not w.....

By Hardik Savani | Views: 56990 | June 17, 2016 | Category : Laravel