Questions tagged as 'laravel'

2
answers

Using Laravel 4 with Microsoft SQL Server 2008

I need to connect a SQL Server 2008 database in Laravel 4. I've been searching and found no solution to the scenario I'm in. I'm using Laravel using the XAMPP (PHP 5.5.6 --with-mssql) package on MAC OS X 10.9 with FreeTDS running perfectly...
asked by 20.01.2014 / 17:29
2
answers

Doubts with relationships in Eloquent

I am making a belongsToMany to retrieve several Users that are related to a Item . It returns me in the array all Users correctly, however I need to do hasOne of each User (I created in the model Us...
asked by 20.05.2015 / 04:42
1
answer

What are the ServiceProvider and ServiceContainer design patterns used in Laravel and Symfony?

In the Laravel 4 ou 5 and Symfony frameworks, I realize that there are two classes that are essential for the operation of the whole system: ServiceContainer and ServiceProvider. It seems to be a way for you to store instances o...
asked by 02.03.2016 / 13:11
1
answer

Laravel 5 and Sql Server

I need a help, I made several attempts to connect Laravel with SQL Server and all without success. However, I was able to run pure php using sqlsrv_connect and Code Igniter. Windows 10 64 bits. Wampserver 2.5 32 bits. PHP version: 5.5.12 (TS,...
asked by 16.11.2015 / 18:58
1
answer

How to subtract dates in laravel?

I need to calculate working time on a call. For this I need to do operations with date , how do I do this in laravel ? Code: public function ticketsByUserSearch(Request $request) { $user = new User(); $user = $user-&g...
asked by 08.09.2016 / 15:48
2
answers

Change table users Auth Laravel 5.1

I'm developing a system using Laravel 5.1 and I do not want to use tables in English. Actually I'm trying to keep the standard here in the company. I would like to know if I can use Auth or OAuth and change the table from users...
asked by 13.08.2015 / 17:32
1
answer

Laravel 5.3 - Events or observers?

I have some scenarios where I can use observers to trigger a notification, however, for me it would be indifferent to use observer or else to create an event, a listener and then use this to trigger a notification. Is there a performance diff...
asked by 31.10.2016 / 18:51
2
answers

Routes Laravel 5.3

Good afternoon people, I noticed that Laravel 5.3 has a new folder "Route", with the routes. By default it uses web.php I would like to know how I can do to create other routes without being inside the web.php, I would like to separate it lik...
asked by 22.09.2016 / 20:33
1
answer

How to avoid overloading HTTP requests when consuming REST APIs?

I have a REST API made with Laravel and a WebApp (which uses the features of this API) made in Angular.JS. My WebApp is a unique registered user portal, but now I'm creating a website so that non-registered users can only check out a few things....
asked by 12.10.2015 / 14:06
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