<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| <?php | |
| /** | |
| * Laravel Passport - Customize Token response. | |
| * | |
| * @author Messi89 OVERGEN <@messi89minou> | |
| * @link https://github.com/messi89 | |
| */ | |
| namespace App\Http\Controllers\Api; | |
| use App\Models\User; |
Make sure these boxes are checked before submitting/approving the PR
| <?php | |
| if (isset($_GET['seek'])) { | |
| $seek = $_GET['seek']; | |
| $lines = []; | |
| $handle = fopen('error_log', 'rb'); | |
| if ($seek > 0) { | |
| fseek($handle, $seek); | |
| } |
| /* | |
| * This work (Modern Encryption of a String C#, by James Tuley), | |
| * identified by James Tuley, is free of known copyright restrictions. | |
| * https://gist.github.com/4336842 | |
| * http://creativecommons.org/publicdomain/mark/1.0/ | |
| */ | |
| using System; | |
| using System.IO; | |
| using System.Text; |
| Quick tip for handling CSRF Token Expiration - common issue is when you use csrf protection is that if | |
| a form sits there for a while (like a login form, but any the same) the csrf token in the form will | |
| expire & throw a strange error. | |
| Handling it is simple, and is a good lesson for dealing with other types of errors in a custom manner. | |
| In Middleware you will see a file VerifyCsrfToken.php and be tempted to handle things there. DON'T! | |
| Instead, look at your app/Exceptions/Handler.php, at the render($request, Exception $e) function. | |
| All of your exceptions go through here, unless you have excluded them in the $dontReport array at the |