Laravel would randomly try to access a non existent symlink
First, allow me to explain how my deployment works:
First, allow me to explain how my deployment works:
I work on a Laravel project with many routes and some of them are POST routes only so when a user type that route manually it shows them:
The GET method is not supported for this route. Supported methods: POST.
I try to import JSON formatted file into MySQL database. I put this code in the web.php:
I have two tables
I am new Laravel, and this is my first project, I got this project which already has some pages and I have to add an admin login page, so I created adminlogin.blade.php file in the resource folder, and make controller using command
In store method i have this:
The question: use IlluminateHttpRequest; use PDF; class PDFController extends Controller { /** * Display a listing of the resource. * * @return IlluminateHttpResponse */ public function generatePDF() { $data = [ ‘title’ => ‘hello world’, ‘date’ => date(‘m/d/Y’) ]; $pdf = PDF::loadView(‘myPDF’, $data); return $pdf->download(‘itsolutionstuff.pdf’); } } The Solutions: Below are the methods you can … Read more
Is this query is correct?
in a Laravel project I am incrementing views based on session I am using it like this:
I am trying to do a multiple sortBy on a collection and seems like is not working properly: