Questo è student.php e la mia funzione per admin:laravel 5 InvalidArgumentException in linea FileViewFinder.php 137: Guarda [.admin] non trovato
public function admin(Request $request){
if($request->isMethod('get')){
return \View::make('/admin');
}
else
{
$UserData['email'] = Input::get('username');
$UserData['password'] = Input::get('password');
User::create($UserData);
return 'admintest';
//return Redirect::to('/view');
}
}
routes.php
Route::match(['get', 'post'], '/admin', '[email protected]');
Questa è la forma admin:
{!! Form::open(array('url' => '/admin')) !!}
<input type="hidden" name="_token" value="{{ csrf_token() }}">
User Name:<br />
<input name="username" type="text" id="username" size="40" />
<br /><br />
Password:<br />
<input name="password" type="password" id="password" size="40" />
<br />
<br />
<br />
<input type="submit" name="button" id="button" value="Log In" />
{!! Form::close() !!}
Non so perché mostra errore:
InvalidArgumentException in FileViewFinder.php line 137: View [.] not found
Qual è il nome del file, che ha forma di amministrazione? Dare il nome completo –
di cui la vista sta parlando .. non ho capito –
Si desidera restituire il modulo di amministrazione. Non è vero? –