Questions tagged as 'laravel'

1
answer

Error in Controller when uploading several images at once

I try to upload several images at the same time and uploading it to the server uploads it but only saves the name of the first one in the database, resizes it and saves it in the folder but does not insert the name in the database of data that m...
asked by 26.10.2018 / 16:50
1
answer

Problem showing content dependent on a SELECT in Laravel

I have a table called 'AUTOS' and 'COMPANIES' , respectively, in my database in phpmyadmin. I'm working on < strong> PHP with LARAVEL. I have a function in Javascript which should show me a certain number of records according to the...
asked by 29.10.2018 / 14:51
1
answer

Meter data in Laravel framework

I have problems with Laravel framework. My problem is that for some reason, when I try to put data in a way, they are not sent and send a 404 "page not found" error. This is the code I have. web (In the routes folder): <?php Route...
asked by 20.10.2018 / 23:21
1
answer

Limit storage space per user in Laravel

I am working on a new project and I was wondering if it is possible to limit the storage space per user in Laravel Let me explain, what I'm looking for is that if the user has the role student then he can store up to 1GB in his profi...
asked by 09.11.2018 / 20:54
1
answer

Insert laravel csrf-token in ajax

This in a <script> to send a form without reloading the page but I get the HTTP419 error so I read the token failure, I was looking at the laravel documentation and the solution is this: JS : $.ajaxSetup({ headers: { 'X-CSRF-...
asked by 09.11.2018 / 14:54
2
answers

Laravel Seed db: seed [Symfony \ Component \ Debug \ Exception \ FatalThrowableError] Fatal error: Class 'model' not found

I am using the FactoryModel tool to populate the database, for this I did the following: I created the model: Php artisan make:model “Users” –m I made the migration: php artisan migrate Users Model { use Authenticatabl...
asked by 03.04.2016 / 17:46
1
answer

How to delete a record from a table with Laravel?

In my application users logged in through a button register themselves with an activity, when they click on the button, the user and activity information is sent to a table in the database. The above works in the following way: Laravel dri...
asked by 08.10.2018 / 18:22
1
answer

Laravel 5.5 how to print an object in the view?

I'm starting in Laravel 5.5, and I have the following problem. I am creating the user login, I authenticate the user, but when I see it, I do not print it (Error: Undefined variable: users (View: C: \ xampp \ htdocs \ system_cine \ resources \ v...
asked by 26.09.2018 / 18:23
1
answer

Save an array in an Eloquent table

Hello, how could I save this request in a table called Cat_favoritas which the arrangement of categories comes from a checkbox array:3 [▼ "_token" => "mqBPCysHUomaBF52LUMisDvI4Ptx5ygYQL1MQOj3" "categoria" => array:3 [▼...
asked by 26.09.2018 / 19:14
1
answer

Add a new column to a table with data in Laravel

In Laravel we have a users migration that comes by default with the following structure public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->st...
asked by 06.10.2018 / 21:37