Questions tagged as 'laravel'

1
answer

Query that inherits twice from a table

Select v.id_user, uv.nombre_nacion as PaisEnvia, up.nombre_nacion as PaisRecibe From solicituds as v INNER JOIN pais as uv on v.id_pais_envia = uv.id_nacion INNER JOIN pais as up on v.id_pais_recibe =up.id_nacion; It would be...
asked by 17.12.2018 / 15:27
2
answers

Axios is not defined

I am implementing axios in my application in Laravel I had to do by hand the implementation of laravel mix among other things. Package.js "devDependencies": { "axios": "^0.18.0", .. }, I already tried to include it...
asked by 11.12.2018 / 00:53
1
answer

Laravel (errno: 150 "Foreign key constraint is incorrectly formed")

I do not know what happens. Schema::create('option_question', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('question_id'); $table->unsignedInteger('option_id'); $table->timestamps(...
asked by 28.06.2017 / 17:58
1
answer

Collect the IDs for JavaScript error

Tegno is formulated in JavaScript: function formula() { var cantidad = document.form1.cantidad.value; var precio_unitario = document.form1.precio_unitario.value; var total = document.form1.total.value; try{ cantidad = (isNaN(parseInt(cant...
asked by 19.09.2017 / 12:39
1
answer

Generate consecutive number of 10 digits as 0000000001 and auto-join with Laravel?

My question is how I can get a consecutive from 0000000001 and go autoincrementando, as it would normally be without additional zeros.     
asked by 11.12.2018 / 16:48
2
answers

Load data from a data table to a modal window laravel 5.7

Hi greetings I try to perform all the functions of the action buttons to finish my crud, what happens is that I want to make them in modal windows someone can help me I do not know how to do it.     
asked by 20.11.2018 / 00:06
2
answers

how to make redirects in laravel

Well, first of all thanks to the users of this community for helping me repeatedly with my doubts in PHP, THANKS! Today my question is something totally new for me, I am new to laravel and I have a project created in pure PHP working, I want to...
asked by 13.06.2018 / 05:49
1
answer

Problem when passing data from a Laravel driver to a view with Vue

I'm passing some data from a controller in the index method: public function index() { $variable = Modelo::orderBy('id', 'DESC')->get(); return view('vista', compact('variable')); } and I am receiving them in this view: <t...
asked by 13.02.2018 / 23:59
1
answer

GATES de laravel. Restrict routes by role

The model is a user has many roles and a role has many users User model public function roles() { return $this->belongsToMany('App\Rol','usuarios_roles','idusuario','idrol'); } role model public function usuario...
asked by 10.06.2017 / 04:44
1
answer

Calling facades from the controller - laravel 5.6

I'm trying to build an api rest in laravel 5.6, the api has to generate a pdf for that I'm using the DomPDF library, and probe from the web routes and it works well but when I try to do it in a controller it does not work for me that does not fi...
asked by 17.08.2018 / 19:41