Questions tagged as 'laravel-5'

1
answer

Disable button after redirect

I have the following situation: A screen (Screen1) where the user chooses the button related to a Set (an entity of my program), it clicks and opens a form of register for that Set. When you click on register, the form data is saved in the da...
asked by 27.06.2018 / 21:37
1
answer

Chat with notice notification in laravel

I'm developing a chat with Laravel , and I followed this tutorial . The chat is working fine, but I wanted to know how to make a notification like this: When a message is sent to a user and the user has not yet read it. Can anyone...
asked by 05.09.2018 / 18:41
1
answer

Does not display relationship data within WITH [duplicate]

I have a Polymorphic Relationship between the Customer and Car Class. Client Class: public function carros() { return $this->morphMany(Carro::class, 'dono'); } Car Class: public function dono() { return $this->morphTo...
asked by 16.04.2018 / 20:41
1
answer

View does not show string value in primary key field

Good people. I'm trying to list the attributes of my table in Laravel 5.6 through a view list, but in the registration (PK) field the contained values are not displayed completely. This field is a code and is of type string but in the view it sh...
asked by 28.03.2018 / 19:38
1
answer

Laravel validator require

When you put the required option in the validation rules of Laravel $validator=\Validator::make($request->all(),['po_bairro'=>'require|string|min:5|max:50']); It requires you to have the value to continue the program....
asked by 16.03.2018 / 15:45
1
answer

Select with foreign key Laravel

Hello, I have been able to solve a foreign key problem now and I came across a second, I have no idea how to retrieve in a select in the view the data of another table. If anyone can give me a simple example, I would be grateful. My create, store...
asked by 26.03.2018 / 00:50
1
answer

How to use inner join in Laravel 5?

I have the following loop in a view table @foreach ($filme as $f) <tr> <td>{{ $f->fil_id }}</td> <td>{{ $f->fil_filme }}</td> <td>{{ $f->fil_sinopse }}</td>...
asked by 11.12.2017 / 03:20
1
answer

Insert SQLite using an array - PHP / Laravel

I have the following array : array:30 [▼ 0 => "12933" 1 => "12931" 2 => "12930" 3 => "12929" 4 => "12928" 5 => "12927" 6 => "12926" 7 => "12925" 8 => "12924" 9 => "12923" 10 => "1292...
asked by 15.11.2017 / 17:46
1
answer

I need to make my Javascript file see the vue and axios files

I recently created a Laravel project that is using VueJs and Axios, and then I sent it to the Heroku server, however something strange happened, the page is with the very strange preview is giving error in the first line of my app file .js is wh...
asked by 30.10.2017 / 20:26
1
answer

More than one relationship with table top

I have an Accounts Receivable table that has a relationship with the Customer Table and TWO relationships with a Chart of Accounts table I searched the Eloquent documentation but did not find how I can do these two relationships with the sa...
asked by 17.11.2017 / 18:15