Questions tagged as 'laravel-5'

0
answers

Access problem with the xampp

Hi Everyone I have this problem at the time of doing the crud to eliminate and what I'm going to eliminate I get this: Forbidden access! You do not have permission to access the requested object. The object is protected against reading or the...
asked by 11.10.2018 / 19:30
1
answer

Create query in several tables with Laravel 5.6

I want to prevent the user from deleting a record if it is already in use, for example: Patient-id_patient table have interaction with table Accidents or Table Appointments Clear by the primary key id_patient. The idea is that if it already h...
asked by 11.10.2018 / 00:32
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

Pass a Variable Controller to the View and how to use it

I have a question about how to pass the Variable $ info_pago of a controller to be used in the checkout view and how to work on it. $info_pago = [ 'merchantId' => "508029", 'accountId' =>'512321', 'description' => 'O...
asked by 11.10.2018 / 06: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

Blank url, do not recharge

Good morning I have configured a route, which works very well by checking filters, the only problem is that if I enter the browser, it does not reload the form, it just goes blank. What can it be? or what data can I show you to help me.  ...
asked by 19.10.2018 / 03:20
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

How do I see the posts only from the users that I follow?

Model: User public function posts(){ return $this->hasMany(\App\Post::class); } public function follows() { //seguidos, a que usuarios sigue este usuario return $this->belongsToMany(User::class, 'followers', 'user_id', 'follow...
asked by 10.10.2018 / 00:18