Questions tagged as 'laravel'

1
answer

Error while executing gulp --production Vagrant Laravel / Homestead

I set up a laravel/homestead environment to study Laravel 5.1 , when trying to execute the gulp --production command I get the following error: Error: Cannot find module 'strip-bom' at Function.Module._resolveFilena...
asked by 13.09.2015 / 23:28
1
answer

How to implement multiple authentication drivers

I am building a system where two types of authentication are required, the first one for ordinary users, who will go to the front of the store, and the second for administrators, who will access the admin environment. The problem: by default...
asked by 05.05.2015 / 12:05
2
answers

Alternatives to passing data by hidden fields

I'm creating a system, where I always need the id of my object in the DB, and most of the system sends this id of the VIEW pro controller using the fields hidden with a POST. If speaking of security is the best way to do this? I find it ra...
asked by 14.05.2015 / 18:14
1
answer

Remove 'public' from URL - Laravel

I'm accessing my site like this: link I would like to just type link because I want it to work when I enter the domain as well. Is there any way to resolve this without being changed by folders, but only via code? I do not understand a...
asked by 08.05.2015 / 18:08
1
answer

Execute javascript function on AJAX calls to a specific page

I have a site in Laravel where the content is loaded dynamically with AJAX, that is, in each call Laravel returns only the view of the part that I need, on a certain page I need to initialize a jQuery plugin that I only use on this page . If I i...
asked by 12.11.2014 / 01:38
3
answers

Filter results by logged-in user id

I am building a system using the Laravel framework (I have little knowledge in fw) and I need to get the id of the user who logged in to do the queries based on the userid. Ex: UserUm = > lists all products registered with the user id....
asked by 01.10.2014 / 21:41
1
answer

Eloquent + Object loading

I have always used Eloquent very well with static methods. Yesterday, when creating a new session log concept for a new project, I came across a question I could not clarify. I have a "Session" template that points to a table with the same na...
asked by 20.08.2014 / 15:40
2
answers

Model delete method does not delete the record

I have the code below on the route, but it does not work! What am I doing wrong? It is returning users correctly, but it does not delete. $Usuario = User::find(2); $Usuario->delete(); return User::orderBy('username', 'asc')->take(4)->...
asked by 17.08.2014 / 16:56
2
answers

How to deploy Laravel 4.2 applications via FTP?

Hello, I'm trying to deploy an application in Laravel 4.2 via FTP, but the features and tutorials I've found have not been able to fix the problem. Could someone tell me a method?     
asked by 19.08.2014 / 04:47
1
answer

How do I set HTML attribute with @yield () in Laravel?

I'm trying to create a template for my control panel in Laravel. I want the top right corner to have a BACK button, where I can link to @yield I tried to make the following code, but I was not successful, it shows as if hr...
asked by 12.10.2014 / 18:45