Questions tagged as 'laravel'

1
answer

Is it wrong to use the facades in the laravel view to display elements to the master user?

I wonder if it's problematic to do this type of validation in Laravel views. Example: Only one master user can delete a certain record, so I have the delete button only if the user is master (logically validating the deletions in...
asked by 10.01.2017 / 17:15
1
answer

Deploy Application Laravel 5.2 + Angular2

I'm developing a small application with Laravel 5.2 and Angular2. So far everything is ok in the development environment (not to contradict :)). My concern is how to deploy this application to a shared server - in which case I'll be posting on K...
asked by 31.08.2016 / 21:09
2
answers

How to find out the version of Laravel installed in my project?

I was with the version of Laravel 4.2.7 installed on my computer. I missed two important methods in Illuminate\Database\Eloquent\Builder , which is whereDoesntHave and doesntHave . When running a composer update...
asked by 03.02.2015 / 20:19
2
answers

Risk in allowing developers to upload .blade files

I'm developing a blog platform where users submit their template and Laravel uses that template to build the blog. The user / developer will only tell you where the values will be, for example: <h2>{{$blog->title}}</h2> Can I...
asked by 11.11.2014 / 19:10
2
answers

How to use Packages in Laravel 4?

I am new to the Laravel 4 framework. In Laravel 3 it was simple to use Bundles. In version 4 it was removed the use of the Bundles and started to use Packages, but I did not understand how it is used, even seeing in the documentation. For exampl...
asked by 13.12.2013 / 17:38
1
answer

Library for data validations in Brazilian Portuguese for Laravel

Whenever I need to use cpf or telefone validations in Laravel, I need to use the Validator::extend method to add these validations. Validator::extend('cpf_real', function($attr, $value) { $c = preg_replace('/\D/', '', $valu...
asked by 27.05.2016 / 18:10
1
answer

Is there any way to test a route using the PHP unit in Laravel?

I really like to use PHPunit to create unit tests for my libraries. Always, before doing git commit , I run it to see if any changes affected what was previously working. I'd also like to be able to test route by route in L...
asked by 20.04.2016 / 22:15
2
answers

How to change the method of an HTTP request in Laravel 4

I need to perform CRUD operations on certain places in my application that are contained within other forms. For this I will use AJAX to update the views containing the "sub-content". I'm using the Resource Controllers methods of Larav...
asked by 24.04.2014 / 19:13
1
answer

URL :: previous () returns incomplete path

As I'm studying the book Code Bright , I get errors from time to time. But this one did not find a solution in Google. When doing Redirect::to() from one route to another should be displayed the previous full address, but only appears...
asked by 23.01.2014 / 20:59
1
answer

Best solution for three types of users

I'm starting in frameworks MVC with Laravel 5.3 I have 3 very different types of users, OperadoresDoSistema , AnunciantesDoPortal and ClientesCompradores , who can view the ad. Each has its sessions, its dashboards, log...
asked by 28.10.2016 / 13:33