Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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::get('users', function()
- {
- return View::make('hello');
- });
- Route::get('login', function()
- {
- $data = Input::get('logCode');
- if ($data=='aaa'){
- return 'true';
- }
- return 'false';
- });
- Route::get('/', function()
- {
- Schema::create('users', function($table){
- $table->increments('id');
- $table->string('name', 20);
- $table->string('surname', 20);
- $table->string('email', 150);
- $table->string('userName', 15);
- $table->string('password', 256);
- $table->integer('roleId', 3);
- $table->integer('userStatusId', 3);
- $table->boolean('isPermanent', 0);
- });
- });
- Route::get('facciamo/una/prova', function(){
- $data = array('ciao', 'antonio', 'collega');
- return Response::json(array('name' => 'Steve', 'state' => 'CA'));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement