PHP Classes

File: routes/web.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon for Laravel   routes/web.php   Download  
File: routes/web.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon for Laravel
Laravel plugin to call PHP classes from with AJAX
Author: By
Last change:
Date: 3 years ago
Size: 647 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Support\Facades\Route;
use
Jaxon\Laravel\Http\Controllers\JaxonController;

/*
|--------------------------------------------------------------------------
| Route to Jaxon request processor
|--------------------------------------------------------------------------
|
| All Jaxon requests are sent through this route to the JaxonController class.
|
*/

$routePath = config('jaxon.lib.core.request.uri', '/jaxon');
$routeName = config('jaxon.app.request.route', 'jaxon');

if(!
Route::has($routeName))
{
   
Route::post($routePath, JaxonController::class . '@process')
        ->
name($routeName)
        ->
middleware('web');
}