Questions tagged as 'laravel'

1
answer

How to use Auth :: user () - id na route?

| id | user_id | url_to | controller | isAuthorized | | 1 | 1 | page1 | DadosCtrl | 1 | | 2 | 2 | page3 | Dados3Ctrl | 1 | | 3 | 1 | page2 | Dados2Ctrl | 1 | I have a middlewa...
asked by 12.05.2017 / 15:38
0
answers

Laravel is not generating CSRF_TOKEN

In the html meta <meta name="_token" content="{{ csrf_token() }}"/> Laravel is not generating csrf token after adding middlware in the route, I will show 2 examples: When I add this middleware it does not work, that is, it does...
asked by 26.04.2017 / 04:17
2
answers

Validate Single Field Laravel

Talk to people, I'm trying to learn Laravel and I'm currently caught up in something apparently simple, it's the following. I created a very simple system with login and other things, and I'm trying to implement editing the data of the logged...
asked by 29.04.2017 / 01:29
0
answers

Relationship between 3 tables with pivot

I have the following structure that I have to follow. Movies People People Types (Actor, Cameraman, Director) Where Every Person HasMany People Types And Every Movie HasMany Person That is, Each movie will have the fields Director, Vide...
asked by 26.04.2017 / 19:43
2
answers

The form is not being saved in the DB

Controller public function cadastro() { return View('/cadastro'); } public function novo() { $user = \App\User::where('User',"=", Input::get("User"))->first(); $user->name = Input::get('name'); $...
asked by 24.04.2017 / 19:18
0
answers

@forelse inside @forlese

Hello, I need to make a @forlese inside a
asked by 23.04.2017 / 02:04
1
answer

Laravel only informs current date

Hello, I am reporting in the construct of my entity the date as follows: Entity : public function __construct($fornecedor, $emissao, $vencimento) { $this->fornecedor = $fornecedor; $this->emissao = new \DateTime(); $thi...
asked by 20.04.2017 / 15:53
0
answers

Method error does not exist in Laravel

Good afternoon, guys. I have an application that uses Polymorphic Relations according to Laravel doc. link I'm having the following error when trying to save the mode. The error occurs in the second save () method of the store method....
asked by 30.04.2017 / 21:59
1
answer

CSS does not load according to route in laravel

I have a blade file in which it is my base layout (which will be loaded on all pages). But I agree that I put the route, the css of this page does not load. Ex.: If my route is like this: Route::get('/novo', 'UserController@novo'); The c...
asked by 19.04.2017 / 15:12
2
answers

How to include a string in the database from an input array with Laravel?

I need to include a string-shaped data in the table in my database that I will get through the input, which in turn is an array. Follow the form for you to see how it is. <div class="form-inline col-md-12"> <div cl...
asked by 22.04.2017 / 05:30