How to get url segment in Laravel?

Posted by LaravelIndia - 1 year ago

Example 1: Get Laravel segment From URL

@extends('layouts.app')
@section('content')
    <h1>Welcome to Out Website</h1>
    {{ Request::segment(1) }}
@endsection