Questions tagged as 'laravel'

0
answers

Apply rates according to the number of books sold

I have the following problem: A publisher pays x% to the author and it has several levels. If the author sells up to 1000unid books he receives 10% of the sale. Between 1000unid and 5000unid receives 12% and between 5001 and 15000unid receive...
asked by 23.02.2017 / 18:50
0
answers

Laravel - Redirect :: to or Redirect :: back giving TokenMismatchException error?

The following is happening, I have the login screen that does some checks, if it does not happen in some of my Controller I make a redirect to url login with the message of error . error if I give redirect...
asked by 24.02.2017 / 14:27
0
answers

Time logged on the system with Laravel 4.2

Good morning. I wonder if Láravel 4.2 has any functionality that tells me how long the user has logged into the system? For example, when the user logs out, I save in the bank that time. When the user logs in again, and then logs out, I add the...
asked by 31.01.2017 / 13:19
1
answer

Use PHPUnit with interactive form

I have a form with Car Brands, Templates and Versions. I'm using PHPUnit to test the form. It works this way: User selects the tag, then the template select is loaded and finally the version select is loaded. My application is made with...
asked by 13.01.2017 / 15:18
0
answers

Laravel problems to redirect after authenticating?

I'm starting to learn how to use Framework Laravel and I'm having a problem with the targeting after login, I'm using the Framework own login system. To learn how to use Framework I am creating a simple blog and at...
asked by 02.02.2017 / 07:54
0
answers

ErrorException rmdir (/ tmp /): Permission denied Laravel

I'm using class Mail of Laravel and it sends the email via SMTP right, but it shows an error. ErrorException    rmdir(/tmp/): Permission denied I have already given full permission to the tmp folder...
asked by 01.02.2017 / 20:20
1
answer

List of project directories in Laravel is displayed instead of running the application [duplicate]

I would like your help to know why my PHP project with the Laravel Framework does not work, I have done all the steps correctly, but instead of seeing the framework, I am seeing your folders     
asked by 11.10.2015 / 04:39
0
answers

Laravel with JWT does not authenticate by header

I'm using Laravel 5.3 together with JWT , but when I send authentication through the header it returns me that I am not authenticated and I get the token by parameter it shows me the result, follow my .htaccess RedirectMatch 404 /\.g...
asked by 27.12.2016 / 12:18
0
answers

Laravel - how to authorize certain action?

I have a small application written with Laravel 5.3, at some point I check to see if the logged in user is allowed to edit / change or delete a certain post: if(!$post = Auth::user()->posts()->where('id', $id)->first()) { return r...
asked by 19.12.2016 / 13:03
1
answer

How to create link to call the resource destroy?

I have a view blade with the following structure: @forelse($posts as $p) <tr> <td><a href="/post/{{ $p->id }}">{{ $p->titulo }}</a></td> <td>{{ $p->status_mutator }}</td> <td>...
asked by 18.12.2016 / 00:47