Questions tagged as 'laravel-5.3'

1
answer

Restricting access to authenticated user data - Laravel 5.3

I have a table that relates to another and that relates to some user. How do I make it so that only the owner of this relationship can change / delete the item. Even if I just bring in the form the records that are related, if by chance I change...
asked by 11.11.2016 / 20:30
1
answer

Multiply insert with laravel 5.3 dynamic form

I'm trying to make a multiple insert with Laravel 5.3 in a table as follows: Form {!! Form::open(['route' => 'demanda.store', 'class' => 'form']) !!} <div class="form-group form-inline"> {!! Form::label('ano',...
asked by 31.01.2017 / 21:22
3
answers

How to get only the month of a date with Laravel 5.3?

I need to get only the month of a date that comes with a $request . But I do not know how to do it: if ($request->parcelas > 1) { $mes = $request->data_vencimento = date('m'); for($i = 0; $i <= $request->pa...
asked by 21.11.2016 / 16:42
1
answer

ORDER BY in string date

I have a table in the database, novidades , where I have a column named date is to be stored as string in dd-mm-yyyy format, but I would like to sort by date based on this value , I calculate that you have to convert to da...
asked by 27.11.2017 / 14:32
2
answers

Laravel cron error does not execute

I have a cron that should be running every day in an hour. $ schedule-> command ('inspire') -> dailyAt ('15: 00 '); but it is not running Code <?php namespace App\Units; use Illuminate\Console\Scheduling\Schedule; use Illuminat...
asked by 30.10.2017 / 19:37
1
answer

How to configure email sending in Laravel within cron?

After the creation of cron (code below) a scan is made in the database behind altered data. I have to send an email with this data. How can I do this ??? cron code: <?php namespace App\Console\Commands; use Illuminate\Console\Command...
asked by 25.10.2017 / 16:42
1
answer

Images do not appear in the Mail inbox. Laravel 5.4

There is a contact form where the user sends a message to the system and the system automatically sends a message back thanking their contact and along with the message I send the most viewed articles. What happens is that in my hotmail (in my m...
asked by 10.10.2017 / 04:01
1
answer

BelongsToMany Laravel 5.4 Class 'Department :: class' not found

I have several 4 tables Starting with Users - > Departments - > category_department - > category - > postings; Where the department_category table it serves as pivo for many to many relationship between the departments table and the...
asked by 11.09.2017 / 19:06
1
answer

Insert Many To Many Laravel 5.4

I have a situation as follows. I have 4 tables users - > department - > category_department - > category - > postings Where in my view I have a select where it shows a data relation about ex department: Thisinformationalreadycome...
asked by 12.09.2017 / 01:12
1
answer

Relationships Laravel OneToOne? [duplicate]

I am doing some exercises, but there is one where I can not understand why it is not working when I make another name in the method. I have a method in Model Location , where it does relationships of OneToOne . When I cal...
asked by 16.08.2017 / 21:29