Monday, 14 December 2015

Laravel 5 Basic of Routs

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

//Route::get('/', function () {
   // return view('welcome');
//});

Route::model('songs','App/songs');


Route::get('/', 'PagesController@index');
Route::get('signin', 'PagesController@index');
Route::get('signup', 'PagesController@signup');
Route::get('data', 'PagesController@data');
Route::get('about', 'PagesController@about');

//Route::get()
    //$router->get()
        get('songs','SongsController@index');
        get('songs/{{$id}}','SongsController@show');
//Route::get('/', function()
//{
   // return 'sample page';
//});

No comments:

Post a Comment