Beispiel #1
0
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in 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.
|
*/
use App\Http\Requests;
//use Illuminate\Http\Request;
use App\LotDef;
Route::get('k', function () {
    $goods = [];
    $goods['lotmap'] = App\LotMap::findOrFail(2);
    $goods['lotdefs'] = App\LotDef::all();
    return $goods;
});
//Route::get('/', function() {
//    return view('welcome');
//});
Route::get('map', 'LotInfosController@map');
Route::get('defs', function () {
    $defs = LotDef::all();
    return $defs;
});
//Route::get('mapa', 'LotInfosController@alpha');
//Route::get('api/lotinfo/{lotid}', 'LotInfosController@getLotInfo');
//Route::post('api/lotinfo/{lotid}', 'LotInfosController@store');
Route::resource('lotinfos', 'LotInfosController');
/*