Questions tagged as 'laravel'

1
answer

How to paginate 2 lists with laravel

as I can page 2 lists with their page each one that at the time of paging does not change the data in the 2 lists if only change where I am paging.     
asked by 13.04.2016 / 19:13
0
answers

Use middleware in lumen 5.1

I have in routes: $app->get('/', function () use ($app) { return $app->welcome(); }); $app->get('home', function () { return 'Bienvenido'; }); In ExampleMiddleware: public function handle($request, Closure $next) {...
asked by 02.04.2016 / 04:16
1
answer

Problems with Accessors and Mutators in Laravel 5

Following an example of L5 in your documentation, what I present here should print a title in capital letters, it is just an example because what I want to do is something else but if the example does not work for me it is because something is w...
asked by 31.03.2016 / 03:48
2
answers

Error with the Seed in laravel 5.6

Sorry, I have a question, maybe it's something very simple but I feel like I already locked myself in my mistake and I can not see another solution The question is this:  I have my tables or migrations:  * ranges Schema::create('rangos', fun...
asked by 30.10.2018 / 19:31
1
answer

Laravel middleware

I have a question a bit silly, the question is that I am ready to create the filter by roles in Laravel, I have created a middleware for the filter of roles in the routes and up to here everything OK. The problem comes when I want to make thi...
asked by 10.07.2018 / 10:09
2
answers

Send files by ajax in laravel

I have a form with ajax and I need to send two image files, if I send it without the ajax it works well, but I want to send it with ajax and it is not working. The data is received but it does not send the file by ajax, So the question is: Ho...
asked by 27.04.2018 / 18:41
1
answer

how to make a join a pivot table?

That such a friend can support me like making a join from a normal table to a pivot table the tables are: * orders * products * OrderPorduct (pivot table) What I have to do is a join of orders toProduct Order where the id of the order and the...
asked by 04.06.2016 / 06:44
3
answers

How to go to a section from another page

<div class="collapse navbar-collapse" id="navbarNav"> <div class="mr-auto"></div> <ul class="navbar-nav"> <li class="nav-item active"> <a class="na...
asked by 30.04.2018 / 01:33
1
answer

Problem with DDBB MySQL and Eloquen relationship

I have 3 Models (tables) in the development of a web page: * Article *Colour * Size The tables must be related since "Article" can have several colors and several sizes. The problem is that there must be a "Quantity" field that I do not kn...
asked by 12.08.2018 / 04:13
2
answers

Problems with Composer when creating laravel project

Hello Friends I try to make a project in laravel from composer but it gives me an error that the truth before never happened to me but now I do not know what happens. Thanks for the help.     
asked by 17.08.2018 / 23:40