UI Code in: resources\views\DistributorRegistration.php
<?php
namespace resources\views;
class DistributorRegitrationForm
{
public function distributorRegitrationFormHtml(){
return '<h1>Hello</h1>';
}
}
?>
In Controler Class: app\Http\Controllers\DistributorRegistration.php
<?php
namespace App\Http\Controllers;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use resources\views\DistributorRegistration;
class DistributorRegistration extends Controller
{
function VestigePOS_GRNHandler(Request $request){
//$id = $request->input('id');
return view(DistributorRegitrationForm::distributorRegitrationFormHtml()) ;
}
}
?>
I receive this error when I call the controller in routes:
Fatal error: Class 'App\Http\Controllers\DistributorRegitrationForm' not found
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1nmTdQp
via IFTTT
Aucun commentaire:
Enregistrer un commentaire