Questions tagged as 'laravel-4'

2
answers

How to disable a text field for editing using jQuery / JavaScript?

Let's say I have a form with fields from 1 to 7. Something like: field-1 field-2 field-3 field-4 field-5 field-6 field-7 All of these fields are on a form. With Laravel, sometimes I experienced situations when I disabled a field with...
asked by 03.02.2014 / 15:13
3
answers

Where to create your own class, and how to instantiate it later?

I have a class of its own (i.e. external to the standard libraries of PHP and Laravel) that makes some connections with equipment of my network and in addition I need to create notifications routines by email and SMS. For reference, this is...
asked by 15.01.2014 / 19:17
2
answers

Authentication with two different tables

I need to do two authentications, one for other clients for admins, so I have to have two instances of auth; how to do this in Laravel, where do I have a client table and another admin table?     
asked by 14.01.2014 / 04:31
3
answers

Error: Mcrypt required in Laravel 4

I made a new installation of Laravel 4. I have all the system requirements are correct. However, when I try to use artisan to run the key:generate command, to configure my APP, I can not. It returns me the following error:    Mc...
asked by 07.01.2014 / 19:48
3
answers

Why Laravel instead of Yii?

It's been a while since I've actually developed PHP. In my latest research, about two years ago, I did not hear much about Laravel , while the Yii was leading some of the framework to be chosen for new projects. Anyway, my question can be...
asked by 14.01.2014 / 15:48
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
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
5
answers

How to create a configuration file in Laravel 4?

I would like to know how to create, import and use new configuration files in a Laravel 4 project. By this, I mean, project files and settings themselves. For example: I would like to create a file that has some static project information, wi...
asked by 16.12.2013 / 11:46
2
answers

Problem with @extends in view in Laravel.

I'm having a problem with @extends('layouts.template') . Only my view that is like index that does not show the page, instead shows me only this @extends('layouts.template') on the page. What could it be? obs: the route is normal...
asked by 19.12.2013 / 11:44