Skip to content
Advertisement

Tag: laravel

Laravel: how to cache route for 5 minutes?

I want to cache one route in Laravel project and clear it for every 5 minutes. I searched a bunch of articles but only found artisan route:cache command and I have no idea if it possible to configure caching time. So, this is my routes routes/web.php: And every time when user loads rating page the getLeaders() function initiates DB request

I want to convert pdf to text. but it gives me error. why spatie/pdf-to-text is showing error?

my code error message Fatal error: Uncaught SpatiePdfToTextExceptionsCouldNotExtractText: The command “”/usr/bin/pdftotext” simple.pdf -” failed. Exit Code: 1(General error) Working directory: C:xampphtdocspdf Output: ================ Error Output: ================ The system cannot find the path specified. in C:xampphtdocspdfvendorspatiepdf-to-textsrcPdf.php:73 Stack trace: #0 C:xampphtdocspdfvendorspatiepdf-to-textsrcPdf.php(84): SpatiePdfToTextPdf->text() #1 C:xampphtdocspdfindex.php(7): SpatiePdfToTextPdf::getText(‘simple.pdf’) #2 {main} thrown in C:xampphtdocspdfvendorspatiepdf-to-textsrcPdf.php on line 73 Answer pdftext is a .exe file located in your

PHP7/Laravel – Declaration of, Should be compatible with

Currently facing an issue with an old Laravel project I am trying to revive and update. The error we’re receiving is being thrown on line 11 inside of MessagesController like so: “…/app/Http/Controllers/Administrator/MessagesController.php:11” Messages Controller: Base Controller: Answer Your parent Controller has not included use IlluminateHttpRequest;. Secondly your parent getUserName method, has the request parameter set to nullable. So change your

Advertisement