Questions tagged as 'laravel'

2
answers

Problem with Jquery and the structure switch case

I have a view that will show me options to search, those options are represented through a select as I select the options I leave my view in HTML is this: <div class="container-fluid"> <div class="row"> <div class="...
asked by 21.03.2018 / 05:40
1
answer

Problem when migrating tables with Laravel (Foreign key constraint is incorrectly formed)

Migration of the student table public function up() { Schema::create('alumno', function (Blueprint $table) { $table->increments('id'); $table->string('nombre'); $table->string('email'); $table-...
asked by 05.03.2018 / 05:59
2
answers

Error the Mysql when uploading to the hosting with Laravel

I have changed the data in .env with the new data that the database hosting gives me and when I go to enter it gives me an error: I'm using webhostapp.com as hosting And I have changed in options the php version to 5.5 ErrorException in MyS...
asked by 05.03.2018 / 14:14
1
answer

Concatenate a view and a json in laravel

How to concatenate a view and a json in laravel 5? $data = Event::get(['id','title','placa','start']);//variables de json //Response()->json($data); return view('Calendario.calendario'); to be able to return the 2 at the same...
asked by 06.03.2018 / 16:18
1
answer

How to select only the last array of an array object that happened to laravel lumen?

because that I put the image of postman arrives me the object of array from angular and I want to select only the last one This is my lumen code I've tried with this but I get an error it may be from the library but I do not know use Illum...
asked by 03.03.2018 / 23:00
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
1
answer

Error Send email when uploading to Laravel hosting

in localhost with Laravel I can send emails, but when I upload it to the hosting it gives me an error. A few days ago I had a problem with Mysql when uploading to the hosting and it was touching a file. But I do not know what I have to do in...
asked by 08.03.2018 / 12:27
2
answers

DB Mysql is not created when I migrate a [closed] model

in my console I write php artisan migrate and my result is as follows     
asked by 09.03.2018 / 00:36