Questions tagged as 'laravel-5'

0
answers

How to detect with an Event in Laravel if a mysql record is completed in several fields by several asynchronous requests?

I have several requests that update the same record of a mysql database in asynchronous form (at different times). The record has 5 text fields (apart from the id , etc) that are completed separately by these different requests. Questio...
asked by 25.07.2018 / 21:07
1
answer

Error loading routes in laravel

Route::get('foo', function (){ return 'Hello World'; }); This is the example of the official website of Laravel, but at the moment you do it I get it:    "Sorry, the page you are looking for could not be found." I appreciate if yo...
asked by 17.07.2018 / 20:08
0
answers

Can two after middleware be implemented in a laravel route? And the path \ Tymon \ JWTAuth \ Middleware \ GetUserFromToken is an after middleware?

I am trying to implement another middleware (apart middleware) apart from the jwt.auth and it is giving me errors when extracting the response data. I wanted to know if this was because the jwt.auth is an after middleware and they have conflict...
asked by 17.07.2018 / 20:24
0
answers

Insert order detail in laravel

Good evening I'm working with laravel 5.4 the problem is that I have two tables an order and detail of order I made a shopping cart is all good with session to what I'm going is that when I want to insert the order table and order detail does no...
asked by 24.07.2018 / 03:49
0
answers

Creation of seeder in laravel with multiple for each

public function run() { // $this->call(UsersTableSeeder::class); $users = factory(App\User::class, 1000)->create(); $users->each(function (App\User $user) use ($users) { $negocio = factory(App\Neg...
asked by 19.07.2018 / 22:50
1
answer

laravel does not allow me to upload files higher than 1MB

Hello classmates, I need help. I have to upload some images to the server but these images are very heavy. I have my custom validations $rules = array ( 'comprobante' => 'required', 'comprobante.*' => 'image|mimes:jpeg,png,jpg,gif,svg...
asked by 04.07.2018 / 17:13
1
answer

Laravel 5.6: When I upload an image, it saves a path but not an image

When I upload an image, it perfectly keeps the image's path in the database, whose field is "image", but it does not save the image as such in the public folder as specified in the code. In the create view of my project I use Form, so I read...
asked by 02.07.2018 / 02:47
0
answers

Failed with the .env file

You see, I have 2 databases in phpmyadmin, one call bolsa and another call juego . I want in both places the tables of my web page. In the first case, I put this code in my .env file: DB_DATABASE=bolsa And object this: To...
asked by 01.07.2018 / 21:19
1
answer

install laravel project in CWpanel

My next query is why I try to install a laravel project already created, and I have not had any luck. the server is of several domains in which it is this way /home/nombredominio/ I explain, first upload the project and put in public_htm...
asked by 23.06.2018 / 05:07
1
answer

Error uploading to local hosting.ERROR: Can not end to section without first starting one

Dear I am trying to upload my app from laravel to a hosting with cpanel, but when verifying that the page is displayed correctly I get an error internal server 500, when reviewing the host's log it tells me the next thing local.ERROR: Can not en...
asked by 20.06.2018 / 20:42