We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b179924 commit 7c56f23Copy full SHA for 7c56f23
app/Http/Controllers/PasteController.php
@@ -16,10 +16,12 @@
16
class PasteController extends Controller
17
{
18
public function index(){
19
+ if (!Auth::check()) return redirect('/login');
20
return view('paste/index');
21
}
22
23
public function submit(Requests\StorePaste $request){
24
25
$title = (empty(trim(Input::get('pasteTitle')))) ? 'Untitled' : Input::get('pasteTitle');
26
27
$expiration = Input::get('expire');
0 commit comments