Questions tagged as 'laravel'

4
answers

How to traverse a php fix in javascript?

I'm using laravel for a project, I present the following problem, in the controller I have an array called scaling value that is filled, then that array was sent to view using return and compact, in the view I need to pass that array to a script...
asked by 25.04.2018 / 21:52
2
answers

Uncaught ReferenceError: $ is not defined

I do not know why I get that error if jQuery is the first library I import, I'm working with Laravel and this is what I have in my app.js file import jQuery from 'jquery' import My_Script from './script/myscript.js' and in the wlcome.blade...
asked by 02.04.2018 / 03:16
2
answers

@foreach in laravel that goes from 2 objects to 2 objects?

I am building a blog in laravel but I found a problem in my blog template, from the file of routes I send by compact the variable post: Route::get('/blog', function () { $posts = App\Post::latest('published_at')->get(); return view(...
asked by 12.08.2018 / 06:07
1
answer

How to create the relationship of two tables in laravel lumen?

I have two tables attached so that In my project Laravel what would be the relationship that I would have to put in the model <?php namespace App; use Illuminate\Database\Eloquent\Model; class Archivo extends Model { prote...
asked by 24.02.2018 / 17:25
2
answers

Query eloquent two tables

I have a table of products that has the fields:    id, name, price, category_id And I have the category table with the fields:    id, name I am trying to make it return all the fields in the product table and instead of showing me...
asked by 07.05.2018 / 19:21
1
answer

Integrate Bootstrap in Laravel 5.4

I'm starting with Laravel and I'm having trouble linking routes with Bootsrap <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">...
asked by 30.03.2017 / 00:04
1
answer

Uncaught TypeError is not a function - Laravel Vue

Inside the template of the Event.vue component I have a select that reads from the wallet table, it is a normal select to choose only one type of wallet (it is not multiselect), for that select I occupy the vue-multiselect component to make a si...
asked by 26.04.2018 / 04:36
1
answer

Laravel, create record if it does not exist

I have a project in laravel with a database < a href="/ questions / tagged / mysql" class="post-tag" title = 'show questions with the tag "mysql"'> mysql and another with mysql to make a transfer of data from one system to another, the fiel...
asked by 26.06.2018 / 16:05
1
answer

Consult twice the same table

I have the holiday table which has two fields, one that is authorize_id and request_id, makes references to the same employee table, I can already show the name of the one who authorizes by means of the id, but I do not know how to show the name...
asked by 28.08.2018 / 19:45
2
answers

Problems with relationship Many to many

I have two many-to-many relationships, a users table and other roles And I have a user with 3 loaded roles in the database, but when I search, it only brings me 1 role. class RoleModel extends BaseModel { protected $table = 'role'; p...
asked by 10.10.2016 / 01:28