Category : TODO Application

Laravel 5 Tutorial (07) :: Delete record from database table.

August 9, 2015 | Harun | In TODO Application

From last tutorial we have learnt how to pagination if we have more record.Today we'll learn how to delete record from database table.   Prepare view : At first add the bootstrap alert code at before @yield('content') in your app.blade.php file which in resources/views directory.

@if(Ses...

Comments 10 | Views 0 Read More

Laravel 5 Tutorial (06) :: Pagination in laravel 5

August 2, 2015 | Harun | In TODO Application

In last tutorial we have fetched data from our database table.In this tutorial we'll do pagination for our data.Let's see the process. Pagination :

  • Open your TodoController and go to index method and replace the code
$data=Todo::all();
replace with
                

Comments 2 | Views 77456 Read More

Laravel 5 Tutorial (05) :: Retrieve data from database table.

July 27, 2015 | Harun | In TODO Application

From Last tutorial we learnt how to insert data in our database table. Today I'll discuss about how to retrieve data from our database. Let's see the procedure. Go to TodoController and define the index method like as below

public function index()
{
  $data=Todo::all();
  return view('home')->with('data',$d...

Comments 0 | Views 84405 Read More

Laravel 5 Tutorial (04) :: Make controller and view for insert and show data (Part 2)

July 25, 2015 | Harun | In TODO Application

Today we will make a view name with home.blade.php in resources/views folder for make a form to insert data into our database and retrieve data from database. Let's see Go to resources/views folder and make a file name with home.blade.php and write code below

@ext...

Comments 2 | Views 90540 Read More

Laravel 5 Tutorial (03) :: Make controller and view for insert and show data (Part 1)

July 12, 2015 | Harun | In TODO Application

Today we'll make a controller for handle our model and view. We'll make a controller name with TodoController. Let's see the simple steps   Follow the steps

  1. Go to your htdocs folder and right click on TODO folder by pressing ctrl+shift key and open command window
  2. Type php artisan make:controller Tod...

    Comments 0 | Views 92831 Read More

Laravel 5 Tutorial (02) :: Make database,model and define table

July 11, 2015 | Harun | In TODO Application

In last tutorial series i have described how to install laravel 5 in windows. If you followed the tutorial and successfully installed laravel 5, you will see the laravel home screen when you browse http://localhost/todo/public. Today we will create a database with name TODO and connect database with laravel 5.   ...

Comments 1 | Views 57556 Read More

Laravel 5 Tutorial (01) :: Install Laravel 5 in Windows.

July 8, 2015 | Harun | In TODO Application

There are many installation process described in Laravel official website. Here i will describe the very easy method to install laravel 5 in Windows. Please sure before install laravel 5 that your PHP version is greater or equal 5.4

    1. First download composer and ...

      Comments 0 | Views 50432 Read More