Proto upload page.

このコミットが含まれているのは:
テクニカル諏訪子 2018-01-24 16:04:10 +01:00
コミット b8127b9f3f
5個のファイルの変更35行の追加23行の削除

ファイルの表示

@ -7,17 +7,7 @@ use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
// $this->middleware('auth');
}
/**
* Show the application dashboard.
* Show the homepage.
*
* @return \Illuminate\Http\Response
*/

28
app/Http/Controllers/UploadController.php ノーマルファイル
ファイルの表示

@ -0,0 +1,28 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UploadController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the upload page.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('upload');
}
}

ファイルの表示

@ -8,11 +8,6 @@
<div class="panel-heading">@lang('homepage.newitems')</div>
<div class="panel-body">
<!-- @if (session('status'))
<div class="alert alert-success">
{{ session('status') }}
</div>
@endif -->
<new-items />
</div>
</div>

ファイルの表示

@ -3,9 +3,9 @@
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">Dashboard</div>
<div class="panel-heading">@lang('upload.upload')</div>
<div class="panel-body">
@if (session('status'))
@ -13,8 +13,7 @@
{{ session('status') }}
</div>
@endif
You are logged in!
Uploader.
</div>
</div>
</div>

ファイルの表示

@ -17,12 +17,12 @@ header('Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, A
Auth::routes();
// FRONTEND
Route::get('/', 'HomeController@index')->name('home');
Route::get('/upload', 'UploadController@index')->name('home');
Route::get('/search', 'SearchController@index')->name('home');
Route::get('/category/{cat_id}', 'CategoryController@index')->name('home');
Route::get('/entry/{file_id}', 'EntryController@index')->name('home');
Route::get('/', 'HomeController@index')->name('home');
Route::get('/profile/{user_id}', 'ProfileController@index')->name('home');
Route::get('/search', 'SearchController@index')->name('home');
Route::get('/upload', 'UploadController@index')->name('home');
// BACKEND
// Category