Class 'App\Reports\Statements\StatementShow' not found
[root@chilly ~]# cd /home/agentrack/public_html/app/app/Reports/ [root@chilly Reports]# ll total 16 drwxr-xr-x 2 root root 4096 Apr 12 19:23 Clients drwxr-xr-x 2 agentrack agentrack 4096 Apr 12 18:53 Customers drwxr-xr-x 2 root root 4096 Apr 13 18:43 Policies drwxr-xr-x 2 root root 4096 Apr 13 11:19 Statements [root@chilly Reports]# cd Statements/ [root@chilly Statements]# ll total 16 -rwxr-xr-x 1 root root 667 Apr 13 11:13 StatementList.php -rwxr-xr-x 1 root root 452 Apr 13 11:26 StatementList.view.php -rwxr-xr-x 1 root root 665 Apr 15 18:37 StatementShow.php -rwxr-xr-x 1 root root 449 Apr 13 11:25 StatementShow.view.php [root@chilly Statements]# pwd /home/agentrack/public_html/app/app/Reports/Statements
<?php
namespace App\Http\Controllers;
use App\UserStatements; use App\Statements;
use Illuminate\Http\Request; use App\Reports\Statements\StatementList; use \App\Reports\Statements\StatementShow;
class StatementController extends Controller {
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$report = new StatementList;
$report->run();
return view("statements.index",["report"=>$report]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}
public function show($id)
{
$report = new StatementShow;
$report->run();
return view("report",["report"=>$report]);
//return view("Statements.show",["client"=> UserStatements::findOrFail($id)]);
}