Questions tagged as 'laravel'

1
answer

Consult select with eloquent in Laravel

I'm starting with Laravel and I have two simple entities that are users and notas , which are related in the following way: Users public function notes() { return $this->hasMany('App\Note'); } Notes public functio...
asked by 16.01.2018 / 14:51
2
answers

Form action in modal

My form is not activated, I have never done this, so I need a little help. At the time of updating, nothing happens. Modal: <div class="modal fade" id="modalUpdate{{$o->idOrder}}" tabindex="-1" role="dialog" aria-labelledby="myMo...
asked by 24.05.2017 / 08:05
2
answers

Syntax error or access violation: 1059 Identifier name '' is too long lumen

I'm migrating to the database with a lumen, and I get the error that the primary key is too long. What I want is to put the three columns as composite keys. public function up() { if(!Schema::hasTable('asignaturas_alumno')){ Sch...
asked by 29.03.2017 / 15:13
3
answers

doubt with isset () laravel 5.5 function

I have a concern regarding the isset function, I have the following lines. $usuarios=usuarios::where("usuario_ad", 'danielad')->get(); $prueba=isset($usuarios); dd($prueba); With this, the query throws records to...
asked by 04.01.2019 / 20:49
2
answers

Display an insert message without flash sessions in laravel 5.2 with restfull drivers

I'm learning Laravel and I want to insert it into a table, and when I insert it, it shows a message in the view that the record has been inserted. I have tried it many times with flash sessions and there is no human way to show the message....
asked by 30.03.2016 / 11:44
2
answers

How to restrict routes or url in laravel 5.7 to each user?

Hello, I have recently been learning laravel but reading the documentation I can not understand the authentication part and this happens in the part of restricting routes to users. For example, if I have an administrator user who can enter these...
asked by 05.12.2018 / 17:05
2
answers

You doubt about queries in MySql and pass data in laravel to a view

I have a question about the query tables in Mysql, I want to get different data about a survey and then add this data. I understand that I have to call my data on the 3 tables so SELECT Orders.OrderID, Customers.CustomerName, Shippers.Shipp...
asked by 30.08.2018 / 20:50
3
answers

Background image is not displayed in the

I have this body: <body data-open="click" data-menu="vertical-menu" data-col="2-columns" class="vertical-layout vertical-menu 2-columns fixed-navbar"> In the parent layout, and I would like to put a background image, but I tried to ch...
asked by 05.09.2018 / 16:59
2
answers

Mapping database with Laravel

I have to do a web project in php and I know general aspects of Laravel, so I would like to use it in the development, what stops me for the moment is to map the database that I have created in mysql with laravel, it is possible to do this? I wa...
asked by 12.07.2018 / 07:58
1
answer

Error: Class '\ App \ User' not found in Laravel

Hello I was doing a project and then we decided to make a new driver and models, I'm new to laravel and I do not understand the flow perfectly, I in my routes I already point to my new controller and use the same views but not I know I ma...
asked by 18.02.2018 / 17:57