Questions tagged as 'laravel-5'

2
answers

Limit the elements that users can see in the views in Laravel 5.5

This is the view of posts on a blog to create, edit, view and delete. I want to restrict the create and delete button so that a user with a certain id can be the only one to see and use these buttons. Here I put the code of the view: <di...
asked by 25.02.2018 / 18:32
1
answer

Get the data of a JsonResponse

I have a controller that accesses the method searchUserByName of another controller and returns a JsonResponse , this variable $user I understand that it is a Json right? If I want to get the value of the result that is insid...
asked by 26.02.2018 / 11:34
1
answer

There is no validation in the files that I upload in Laravel

In the creation validation of a post-use entry this request: <?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class PostStoreRequest extends FormRequest { /** * Determine if the user is authorized to make t...
asked by 25.02.2018 / 03:57
2
answers

Error uploading images in Laravel

I am doing a blog in Laravel, the posts have images and when creating a post an image is uploaded. If the post is created the image is uploaded perfectly but when the post is edited and another image is uploaded it does not go up and also the ad...
asked by 16.02.2018 / 00:53
1
answer

No message in form

I have a User table, which among its variables has a call balance, which is of integer type and is to indicate how much money a user has. I want to make a form which the user writes a number. If the user's balance is zero (or equal to 0), this n...
asked by 17.02.2018 / 13:26
1
answer

Using images in Laravel

You see, I have a table of plants: Schema::create('plantas', function (Blueprint $table) { $table->increments('id'); $table->string('nombre'); // Nombre de la planta. $table->string('tamaño'); // Cl...
asked by 13.02.2018 / 22:18
1
answer

Filter the values of a table according to foreign variables

You see, I have 3 tables: the plants, the users and the comments. The comment table has foreign keys that point to a specific plant and user. With that in mind, create a view which shows the comments by filtering them according to what plant...
asked by 12.02.2018 / 13:13
1
answer

Query laravel 5.6

Hi, I'm doing what I tried to do something half complex that does not work out for me, it's the following: I have 3 tables: users: the table that comes by default in laravel payment_type: I show the types of payments payment_users: I get...
asked by 13.05.2018 / 00:52
1
answer

I have problems in my laravel 5.5 project

This error appears:    SQLSTATE [42S22]: Column not found: 1054 Unknown column 'clients.deleted_at' in 'where clause' (SQL: select * from clientes where clientes . deleted_at is null) Generate my controllers and...
asked by 07.02.2018 / 17:28
1
answer

Help Laravel 5.5: auth :: attempt returns false

I have a login that worked perfect with the id in its respective table, change the migration so that the primary one was username (in table users), deleting the id, I put in the model the new primaryKey "username", but the auth::attempt a...
asked by 31.01.2018 / 13:33