Posts by Brayan • 421 points
6 posts
-
5
votes3
answers3229
views -
9
votes3
answers5592
viewsA: Where to create a class of its own, and how to instantiate it later?
I usually create a Library folder within /app, and add it to the autoload of Composer.json (autoload -> classmap node) You can also, add in the autoload of Laravel itself, in the file…
-
3
votes2
answers2341
views -
1
votes1
answer458
viewsA: Error in DOMPDF library constant
From what I read in the documentation, you must require the DOMPDF configuration file, before instantiating the object. require_once '/path/to/vendor/dompdf/dompdf/dompdf_config.inc.php'; I…
-
5
votes5
answers28367
viewsA: When to use self vs $this in PHP?
The difference is that the self is for when the class (or instance), is in a static context (whether a method or property), and obviously this is when it is not static.
-
6
votes3
answers2387
viewsA: User-friendly URL for GET (search) form in Laravel 4
Automatically I do not know if there is any way, I believe that no. What you can do is, scroll through all the form elements with javascript, mount the url, and have the browser redirect to the url…