PHP Classes

File: app/Http/routes.php

Recommend this page to a friend!
  Classes of Nahidul Hasan   Laravel Service Container Example   app/Http/routes.php   Download  
File: app/Http/routes.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Service Container Example
Resolve class dependencies using an IoC container
Author: By
Last change:
Date: 2 years ago
Size: 601 bytes
 

Contents

Class file image Download
<?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');
});

//App::bind('App\Repositories\OrderRepositoryInterface', 'App\Repositories\DbOrderRepository');

Route::resource('orders', 'OrdersController');