-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from tracepath/master
Update to Laravel 5.8 Thanks @tracepath Sorry for not maintaining this app myself, I didn't realize it was used
- Loading branch information
Showing
9 changed files
with
5,912 additions
and
2,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace app\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
class UserController extends Controller | ||
{ | ||
function getUser(Request $request) | ||
{ | ||
return $request->user(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace app\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
|
||
class WebController extends Controller | ||
{ | ||
function homepage(Request $request) | ||
{ | ||
|
||
if (Upload::canUpload($request->ip()) !== true) { | ||
return view('cannotupload', [ | ||
'u' => $request->get('u') | ||
]); | ||
} else { | ||
return redirect()->route('upload.create'); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.