PHP Classes
elePHPant
Icontem

File: DemoController.php

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

 

Contents

Class file image Download
<?php

namespace App\Http\Controllers;

use
App\Http\Controllers\Controller;

class
DemoController extends Controller
{
    public function
__construct()
    {
       
// parent::__construct();
   
}

    public function
index()
    {
       
// Register the Jaxon classes
       
\LaravelJaxon::register();
       
// Print the page
       
return view('index', array(
           
'JaxonCss' => \LaravelJaxon::css(),
           
'JaxonJs' => \LaravelJaxon::js(),
           
'JaxonScript' => \LaravelJaxon::script()
        ));
    }
}