Questions tagged as 'laravel'

0
answers

Perform a selecbox all TimeZones laravel

in format like this and I could not have it wrong I would like to help me thank you very much 24h (H: i) and in format (h: ia)  example: Africa / Abidjan - abidjan (H: i) (h: ia) '$timeZones= ["Africa"=>[ ["Africa/Abidjan","Abidjan...
asked by 11.10.2018 / 14:59
1
answer

What is the difference between assertEquals and assertSame?

For when I check for example in the unit tests that a user did not create assertEquals(0,User::count) or assertSame(0,User::count)     
asked by 11.10.2018 / 13:14
1
answer

Laravel 5.6: Execute command every minute

Create a command to send an email, test the command executing it in the console and it works perfectly. However I want it to be done automatically without having to enter the command in the console. I added it to the kernel so that it runs every...
asked by 11.10.2018 / 04:14
0
answers

Laravel 5.6: Send mail every so often

Now modify the config with data from a gmail account, I currently send emails through a view, in which I access, enter the data and send the email. However I want the mail to be sent without having to resort to a view. The question is how to pro...
asked by 10.10.2018 / 15:11
0
answers

PostgreSQL: Is there a difference between timestamp (0) without time zone and timestamp without time zone?

I am using postgresql and Laravel, when doing migrations the date fields send them to me as timestamp(0) without time zone , but in the data type of postgre when a new column is going to be created I find them so timestamp without time...
asked by 09.10.2018 / 22:17
1
answer

Laravel 5.6: Call to a member function getRealPath () on string

I am trying to send an email from my Laravel project. Upon entering the store I get this error:    Call to a member function getRealPath () on string The email is sent with an attachment, when it is sent without taking into account the...
asked by 10.10.2018 / 00:36
0
answers

Create virtual host for Laravel in xampp using port 8003

I am trying to create a virtual host for my project in Laravel using Xampp. Already add 127.0.0.1 proyecto.com in the file hosts of C:\Windows\System32\drivers\etc Change the value 80 to 8003 in the file httpd...
asked by 07.10.2018 / 05:08
2
answers

Limit foreach query

How can I limit an @foreach? I use a foreach to show the data of a related table and I would like to limit the results of that foreach I try to use this but it gives me error {{$count = 0;}} @foreach($product->post as $produc) {{if($count...
asked by 07.10.2018 / 22:18
0
answers

Middleware - Laravel

I have a question about middleware What I want to do: That a logged in user can not go to any route if he does not click on a box that appears on the screen. I do not know if this can be done with the middleware since with it I control t...
asked by 08.10.2018 / 06:35
0
answers

Use a parai rest of paravel

I just finished an api rest in php with the laravel framework, but I want to put it to test and I do not know how to do it, I think I created another folder to start using the url, but I really do not know how to consume that api for the shows w...
asked by 04.10.2018 / 20:50