Questions tagged as 'laravel'

1
answer

Return form with data after validator fails

I have a user registration form in Laravel <form class="form-horizontal" method="post" action="{{url('/usuarios')}}"> @csrf @if(session()->has('message')) <div class="callout callout-danger">...
asked by 18.04.2018 / 20:40
1
answer

Route restrictions with laravel

Good afternoon. How can I make a restriction of some specific routes with Laravel? For example. If I have an e-commerce I will have the admin users who will be able to access the routes of the administrative panel and all the other routes...
asked by 02.05.2018 / 18:47
1
answer

Laravel 5.6 recover data from a form?

Error   Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException       No message No Controller Method class GuzzleController extends Controller { public function post(Request $request){ $email = $reques...
asked by 12.03.2018 / 23:44
1
answer

Controller or resource controller, how to determine which one to use?

I'm creating a small application using Laravel 5.6 , however, I'm having trouble determining the route nomenclature, or rather to determine whether or not I use resource Controller . I currently have these routes: Route::get('/a...
asked by 03.04.2018 / 04:50
2
answers

Laravel php auth system

How to authenticate user login and password in laravel, I am trying already has some time but I can not. Routes Route::get('/login',['uses' => 'loginController@login','as' => 'login']); Route::post('/login',['uses'=>'loginContr...
asked by 24.01.2018 / 15:10
1
answer

Redirect to external link in Laravel

How can I do to redirect out of my website in Laravel? I have already tried with Redirect :: away () but it did not. I saw some solutions with javascript but wanted to look for other ways.     
asked by 06.03.2018 / 12:37
1
answer

Middleware Group Authentication Laravel

save folks, I want to know how to design my admin route so that the user does not have access to this route but they both have to be authenticated. My routes Route::group(['middleware' => ['auth']], function () { Route::get('/Admin'...
asked by 29.01.2018 / 17:48
1
answer

Error sending information to the bank. Editing Form

I have an edit form for a posts feed. When I click to save the edit the following error appears: SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "title" violates not-null constraint DETAIL: Failing row contains (1, 1, null,...
asked by 24.04.2018 / 15:15
2
answers

SQLSTATE [08001] - Named Pipes Provider - Laravel

I'm getting an error when connecting to the application with the bank. The .env file is configured correctly with the bank settings, the error that I have in return: SQLSTATE[08001]: [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Pro...
asked by 13.12.2017 / 17:33
2
answers

Laravel: Syntax error or access violation: 1071 Specified key was too long

I have created the tables in the database, but it shows me the error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes . How do I fix this?     
asked by 28.01.2018 / 16:39