Skip to content

Instantly share code, notes, and snippets.

@manishk3008
Last active January 3, 2016 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manishk3008/8511034 to your computer and use it in GitHub Desktop.
Save manishk3008/8511034 to your computer and use it in GitHub Desktop.
Showing laravel routing
@extends('mobile.main')
@section('content')
{{Form::open(array('action' => 'user.store'))}}
{{Form::close()}}
@stop
<?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 Closure to execute when that URI is requested.
|
*/
Route::group(array('domain' => 'local.silaravel.com'), function() {
Route::get('/', function() {
return View::make('web.login');
});
Route::resource('user', 'webcontroller\UserController');
});
Route::group(array('domain' => 'm.silaravel.com'), function() {
Route::get('/', function() {
return "hello mobile";
});
Route::resource('user', 'mobilecontroller\UserController');
});
Route::group(array('domain' => 'api.silaravel.com'), function() {
Route::get('/', function() {
return "hello api";
});
Route::resource('user', 'apicontroller\UserController');
});
@extends('web.main')
@section('test')
{{Form::open(array('route' => 'user.store'))}}
{{Form::close()}}
@stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment