Questions tagged as 'laravel'

2
answers

Laravel error Primary Key

Good, I'm introducing myself a bit in Laravel and I'm passing a code that I have in pdo, I'm with the creation of tables and tells me this error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; che...
asked by 01.06.2017 / 23:59
1
answer

FlatMap array_map (): Argument # 2 should be an array

I'm trying out some laravel helpers and I realize that either I'm doing something wrong or this is not working, I use laravel 5.2 This is my code. public function coleccionArrayAlfanumerico() { $resultado = collect(['pepino','...
asked by 11.05.2017 / 12:39
0
answers

Laravel AdminLTE and Entrust-gui Route :: group error

I have an error in the Laravel enroutado I am using AdminLTE as a design and Entrust for the user level control but I want that when login as admin is redirected to another routa that is in the AdminController and with the same user to have ever...
asked by 28.04.2017 / 17:21
1
answer

Extract data from an external website with JQUERY Y LARAVEL? [CORS]

I was doing a mini project to be able to extract part of the text from an external website, I have been reporting on the subject and apparently this is called CORS, I tried to implement it but it did not just work for me. I'm doing it through aj...
asked by 29.04.2017 / 12:53
1
answer

how can I use the laravel console on a remote server?

I'm new to laravel and I'm working on a project where I need to do a cron job, the problem is that I do not know what route to take, I'd like to know how to execute artisan commands on a remote server, and what programs should I use, any answer...
asked by 10.04.2017 / 19:23
1
answer

Problem in a laravel view

How can I show the number of students per course in an index view? These are the relationships in my models Student: public function curso() { return $this->belongsTo(Curso::class,'id_curso','id'); } Course: public functio...
asked by 31.03.2017 / 00:54
2
answers

Create temporary accesses in laravel 5.4

I am developing an application where a tutor can create temporary credentials so that the students assigned to them can enter to perform a test, the test table has the following attributes: id, nick,password, status, student_id I ha...
asked by 29.03.2017 / 05:59
0
answers

Error in Laravel login in navbar made with bootstrap

I have a navbar that I made with bootstrap so that anyone can log into any part of the application in the navbar but I have an error that is driving me crazy and it is that it does not let me login with the dropdown I did for the login and I giv...
asked by 29.03.2017 / 03:03
1
answer

How to transform the route shown in Laravel?

I'm new using Laravel and my question is this: How can I do so when this route is requested: miproyecto.com/user/23 is transformed to: miproyecto.com/victor-hugo I just need to do that, and I managed to get the data thrown depending...
asked by 04.05.2017 / 05:30
1
answer

Laravel 5.1 -Eager Loader gets me the last element of sub-fix

This is the code .. public function create() { $data = ComponenteFormacion::with(['campo_disciplinar']) ->get(); return $data; } I only get the last element of "field_disciplinary"...
asked by 15.03.2017 / 04:07