Tag : Site


How to get site URL in Laravel 5?

Here is quick post, which can help you to get base url or home page url of your laravel application. I think many times we need to get site URL for something share or link, so you can get that using url helper and URL facade. Both way are same you can use that anywhere i mean in controller or view. so let's see. <strong>Example:</strong> <pre class="prettyprint lang-php"> $url = URL::to("/"); print_r($url); <br/> $url2 = url('/'); print_r($url2); </pre>

By Hardik Savani | April 11, 2016 | | 8981 Viewer | Category : Laravel
READ MORE

    How to use sweetalert message box in laravel 5?

    How to use sweetalert message box in laravel 5?

    Open Post

    Laravel 5 create custom artisan command with example

    Laravel 5 create custom artisan command with example

    Open Post

    Laravel 5.5 - Validation Data Return - New Feature

    Laravel 5.5 - Validation Data Return - New Feature

    Open Post

    PHP - Bootstrap autocomplete tokenfield with Ajax Example

    PHP - Bootstrap autocomplete tokenfield with Ajax Example

    Open Post

    Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

    Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

    Open Post

    Laravel 5 - GEO chart example and demo using lavacharts package

    Laravel 5 - GEO chart example and demo using lavacharts package

    Open Post