PHP Classes

File: src/route.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   Laravel Short URL Generator   src/route.php   Download  
File: src/route.php
Role: Auxiliary script
Content type: text/plain
Description: Route script
Class: Laravel Short URL Generator
Generate and expand short URL stored in a database
Author: By
Last change:
Date: 3 years ago
Size: 245 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;
use
Pharaonic\Laravel\ShortURL\ShortURLController;

Route::get(config('Pharaonic.short-url.prefix', '') . '/{ShortURL}', ShortURLController::class . '@ShortURL')->middleware('web')->name('shortURL');