Pages
(Move to ...)
Home
Java
Android
Php
Cake PHP
jQuery
Grails
All Pages
▼
Showing posts with label
Laravel 5.x
.
Show all posts
Showing posts with label
Laravel 5.x
.
Show all posts
Friday, February 8, 2019
Try catch not working Laravel raw queries | How to properly catch PHP exceptions (Laravel 5.X) | Why try catch not work in Laravel
›
Make sure you're using your namespaces properly. If you use a class without providing its namespace, PHP looks for the class in the cu...
Getting url() in a Command returns http://localhost | URL generated in a queue - localhost returned | URL in jobs only return localhost | URL problem with queued jobs
›
First need to specify url to project/config/app.php as below: <?php return [ 'url' => 'http://localhost:81/m...
Laravel :: Getting url() in a Command returns http://localhost | URL problem with queued jobs | Url helper functions that are relative to application url config | Localhost url problems
›
First need to configure project/config/ app.php as below: /* |----------------------------------------------------------------...
Middleware when running Artisan console request
›
I want a custom piece of middleware to run whenever I run an artisan command. I need to set a few environment variables to be used ...
Sunday, June 25, 2017
Laravel 5: How to Select from Sub-query using Laravel Query Builder
›
Laravel 5: How to Select from Sub-query using Laravel Query Builder. It's very easy to use Sub-Query as Select query in Laravel. Below...
Friday, June 23, 2017
Laravel 5.X: How Do I Get Raw SQL Query As String With Binders From Query Builder | Query Builder To Raw SQL
›
Laravel 5.X: How Do I Get Raw SQL Query As String With Binders From Query Builder. Its very easy and now few steps from here. It's in...
Laravel 5.X: Use of SubQuery | Sub Query in Where Condition
›
Laravel 5.X: Use of Sub-query | Sub Query in Where Condition. It's very important. Below is an sample example how we can use sub-query...
Thursday, June 22, 2017
Laravel 5:Redirect back to the same page where the request comes from with input and messages
›
In your controller: use Illuminate\Support\Facades\Redirect; $error[] = "SOME ERRORS"; return Redirect::back() ->wit...
Sunday, June 18, 2017
Laravel 5.X Forward To URL | Redirect To Route | Forward Request | Mock Request | Mock HTTP Request | Dynamic HTTP Request | Laravel Dispatch Request
›
Laravel 5.X Forward To URL | Redirect To Route | Forward Request | Mock Request | Mock HTTP Request | Dynamic HTTP Request. It's e...
Friday, June 16, 2017
How to Handle Laravel 5.X Exceptions
›
In Laravel 5.2, all errors and exceptions, both custom and default, are handled by the Handler class in app/Exceptions/Handler.php with the...
Laravel 5.X: Access HTTP Session From Controller | Service
›
It's very important to have access to HTTP session in our Laravel Controller or Service class. Below is a code sample of session acces...
Laravel 5.X: Access HTTP Request From Controller | Service
›
It's very important to access HTTP Request from Laravel Controller or Service. Below is a code example showing how to access HTTP Requ...
Monday, June 12, 2017
Laravel 5.X Authentication Custom User Providers
›
The custom provider let you make and bridge between your user custom authentication service and the Laravel functionality. It's easy ...
Monday, May 15, 2017
How to add header/footer to multipage pdf on Laravel SnappyPDF WkHtmlToPdf
›
I am sure you already install WkhtmlToPDF with Snappy in your Laravel project. If not yet please visit the link below to install WkhtmltoPD...
Friday, April 21, 2017
Generate PDFs in Laravel 5.x with Snappy & Wkhtmltopdf
›
At first we need to install Wkhtmltopdf on our server. To do so we need to add following lines under "require" section on compose...
›
Home
View web version