Questions tagged as 'laravel-5'

3
answers

Can Laravel be installed in a shared hosting?

I will start to develop a project but I have a great doubt, can you install laravel in a shared hosting? Can I see the errors online and work directly? I have researched about Laravel and I see that Compoiser is used to install libraries, but be...
asked by 30.08.2016 / 14:36
2
answers

middleware (User roles) in laravel 5.2

I am in the development of a human resources system, for which I am using laravel in version 5.2. but I am in a dilemma when using middleware , so far I have 3 types of roles, the Administrator , Adminstrative and finally the Teacher that...
asked by 05.12.2016 / 15:57
2
answers

Is it necessary to use two types of validations in laravel?

I will present a topic that you may know, but for me it is not entirely clear ( for the amount of time I've been using the Laravel framework ), I hope this topic can be explained here: It turns out that I am developing a sitio web (admi...
asked by 11.04.2018 / 16:48
2
answers

Update the database when I move rows of a table

View code: <div id="tabs"> <div class="col-md-12" id="current"> @include('cms.public.views.partials._messages') <div id="table1"> <table class="table">...
asked by 23.08.2017 / 14:49
4
answers

ajax requests in Laravel

This is the example code of a controller and the normal handling (not AJAX) of a Request or request. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Routing\Controller; class UserController extends Contro...
asked by 01.12.2015 / 19:58
1
answer

Entrust Laravel 5.3

I've been working with Laravel Entrust for several days. It turns out that when I try to validate the roles from the routes, I get the following error: Class App\Http\Zizaco\Entrust\Middleware\EntrustRole does not exist Here is my validatio...
asked by 26.10.2016 / 20:50
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
1
answer

Use of quotes or single quote in laravel

I have a question regarding the use of quotes in laravel to explain I put a snippet of code. public function index(Request $request){ $query=trim($reques->('serchText')); $categorias=DB::table('categoria') ->where('nombre','LIKE','...
asked by 02.10.2016 / 06:37
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
2
answers

Obtain data of an object in Laravel

I know it's not the way to ask, but I'm starting in Laravel and they sent me an exercise in class and I do not know how to continue. They ask me to show a student (indicating their id), I have created the table and the model with artisan, I have...
asked by 27.01.2018 / 13:18