Hoschis Vollpfosten First Commit

This commit is contained in:
Torsten 2017-06-20 08:43:36 +02:00
parent b52a6fade5
commit 0736ecf29f
112 changed files with 9777 additions and 0 deletions

18
pfosten/routes/api.php Normal file
View file

@ -0,0 +1,18 @@
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});

View file

@ -0,0 +1,16 @@
<?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

View file

@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->describe('Display an inspiring quote');

46
pfosten/routes/web.php Normal file
View file

@ -0,0 +1,46 @@
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/register','RegistrationController@create');
Route::post('/register','RegistrationController@store');
Route::get('/login','SessionsController@create');
Route::post('/login','SessionsController@store');
Route::get('/logout','SessionsController@destroy');
Route::get('/','UsersController@index')->name('home');
Route::get('/seasons','SeasonsController@index');
Route::get('/seasons/create','SeasonsController@create');
Route::post('/seasons/store','SeasonsController@store');
Route::get('/rounds','RoundsController@index');
Route::get('/rounds/create','RoundsController@create');
Route::post('/rounds/store','RoundsController@store');
Route::get('mypage','UsersController@mypage');
Route::get('/api/users', 'UsersController@getAllUsersAsJson');
Route::get('/users', 'UsersController@showUsers');
Route::get('/users/{userObject}', 'UsersController@showUser');