Category : Laravel Framework

Fix bangla slug problem in eloquent sluggable

August 11, 2016 | Harun | In Laravel Tips & Tricks

Fix bangla slug problem in eloquent sluggable

In laravel framework, there is a third party library for automatically generate slug for your eloquent model. It is by default works fine but when the source is Unicode Bangla text it will generate slug just like this -2,1,2,3,4,-6. You can solve this issue just following simple work. First add a file in the config folder name with sluggable.php, if you don't have already it. Now ad...

Comments 0 | Views 0 Read More

Fix Laravel Schedule Problem “Invalid argument supplied for foreach”

June 4, 2016 | Harun | In Error Solve

Fix Laravel Schedule Problem “Invalid argument supplied for foreach”

This tricks for who are getting an exception when executing laravel schedule task. The exception message looks like 'ErrorException' with message 'Invalid argument supplied for foreach'. By little tricks, you can run your schedule task without any exception. Use it : php -d register_argc_argv=On public_html/artisan schedule:run 1>> /de...

Comments 0 | Views 0 Read More

Remove “public” from url in laravel project.

May 3, 2016 | Harun | In Laravel Tips & Tricks

Remove “public” from url in laravel project.

In laravel framework by default, all the route will get after the "public" in URL like http://localhost/my-project/public/myroute. There are some solution for avoiding the public from URL, Here I'll show you a simple solution where you don't have to setup extra configuration in live server. You don't have to think about a virtual host or is the project in local or remote server. Let's see t...

Comments 1 | Views 0 Read More

Laravel Angular CRUD (06) :: Delete record by angular js in laravel 5

March 8, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (06) :: Delete record by angular js in laravel 5

In the last episode, I have discussed how to edit a record. In this episode, I'll show you how to delete a record by angular js without page refresh.Let's see the procedure.

You can find this project in my Github repository Laravel Angular CURD

First define the destroy method in Todo...

Comments 0 | Views 0 Read More

Laravel Angular CRUD (05) :: Edit data by Angular Js in Laravel 5

March 6, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (05) :: Edit data by Angular Js in Laravel 5

In this episode, I'll show you how to edit a record. In the last episode, I have shown how to insert data.For better looking I have changed in index.blade.php file.

You can find this project in my Github repository Laravel Angular CURD

First add ng-click di...

Comments 0 | Views 0 Read More

Laravel Angular CRUD (04) :: Insert data by Angular Js in Laravel 5

March 1, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (04) :: Insert data by Angular Js in Laravel 5

Today I'll show you how to insert data by Angular Js in Laravel 5. So let's see and follow the steps attentively. Our route already been set up for insert, update, delete by the resource route. You can see how many routes in your application and their action, method by executing this command.

php artisan route:list
First we have to define...

Comments 0 | Views 0 Read More

Laravel Angular CRUD (03) :: Retrieve data by Angular Js in Laravel 5

February 27, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (03) :: Retrieve  data by Angular Js in Laravel 5

In this part, I'll teach you how we can retrieve our task list from database table by angular js. Let's see the steps.

You can find this project in my Github repository Laravel Angular CURD

First define index method in your TodoController.php file for return index.bl...

Comments 0 | Views 0 Read More

Laravel Angular CRUD (02) :: Model,View,Controller and Route configure

February 25, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (02) :: Model,View,Controller and Route configure

Today I'll show you how to setup and configure our view,model,controller,routes for making crud system with angular js. Let's see

You can find this project in my Github repository Laravel Angular CURD

First create a controller by command

                     Comments 0
                     |  Views 0
                    Read More
                

Laravel Angular CRUD (01) :: Project Setup

February 24, 2016 | Harun | In Laravel Angular CRUD

Laravel Angular CRUD (01) :: Project Setup

In this tutorial series, I'll show you how to make CRUD system in Laravel 5 with angular JS without refreshing page. This is a really small project but if you learn this system then you can apply this method in your any project. For this purpose, I am using Laravel 5,xampp server,MySQL in my system.Today I'll discuss how to setup our project.

You can find this ...

Comments 0 | Views 0 Read More

laravel 5 mass assignment problem fix

January 20, 2016 | Harun | In Error Solve

laravel 5 mass assignment problem fix

If you are a laravel developer and getting an error when your are trying to insert data into database table then you get an error like as Mass assignment. You are getting this kind of message error message for the security issues of laravel framework. Comments 0 | Views 0 Read More