Questions tagged as 'laravel'

1
answer

How to make a LIMIT in Laravel?

I need to show a certain amount of values in a view. I want to do something like SELECT * FROM tabla LIMIT 4 But I need to do it in Laravel     
asked by 03.10.2016 / 20:33
1
answer

Psr-4 Laravel Namespace

I am working with Laravel 5.1 in an app that is already running, but I am changing from modules to the repository pattern. "psr-4": { "app\": "app/", "Cms\": "app/cms" } The first one is the default namespace and the second is what...
asked by 13.09.2016 / 15:13
2
answers

TokenMismatchException in VerifyCsrfToken sending ajax by POST. ERROR 500

Hi, I have a problem with the csrftoken when making an ajax request. If I deactivate it in the kernel, protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Coo...
asked by 06.09.2016 / 18:51
1
answer

formValidation error with remote validator

My main problem was that I was trying to get a true / false from the controller to check the existence of an item in the database, (you can see it here) . The error was resolved, then I saw that one of the users, of the questions that they sugg...
asked by 26.11.2016 / 07:16
1
answer

Filtering categories by link in same main page, error Trying to get property of non-object

I have a main page composed of articles that show the last articles that have been received, and list (links) of all the categories and the number of items that each category has. What I want to do is filtrar , that is to say that w...
asked by 30.06.2016 / 11:54
1
answer

Problem when forcing ssl in my domain with htaccess

this is my file that I have in Laravel 5                     Options -MultiViews        #redirect www to website root RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] #force...
asked by 25.03.2016 / 01:31
1
answer

Can not read property 'push' of undefined

I have a problem implementing the ngInfiniteScroll library of angularJs with Laravel, the truth is not given with that error here my Corner Services function PostServices($http, $q, CONFIG) { return { getPots: getPots, // po...
asked by 09.05.2016 / 00:30
1
answer

Why do not Laracast / Flash messages run on laravel 5.2?

Install Laracast / Flash in my project developed in Laravel 5.2, everything is perfect, inserted and deleted and all that, but when I want to show a message, it does not do anything, that is, it makes the option but it does not show the message....
asked by 16.02.2016 / 07:28
1
answer

Check if a variable in a form is unique in 2 simultaneous models

You see, I have a form to register a new user, which has among its variables the email. These are the conditions you must meet:    'email' = > 'required | string | email | max: 255 | unique: users' The condition unique:user prev...
asked by 19.12.2018 / 21:04
1
answer

Use component for all views

I have a problem, I'm using vue-router and I need my <top-bar/> always to be shown in all the views that go on the router, try to use: <div class="container"> <router-view name="topbar"> <top-bar/&...
asked by 22.12.2018 / 01:59