How to get url segment in Laravel 5?

By Hardik Savani | April 10, 2016 | | 4740 Viewer | Category : Laravel


Share this post:



Whenever you need to get current url segment then you can get using Request facade. I give you example one for using Request facade. so you can get segment from url and how you can see both example.

Example:

@extends('layouts.app')

@section('content')

{{ Request::segment(1) }}

@endsection