0
votes

I trying to create this application and I got Class 'App\Http\Controllers\KodeInfo\jorgchart' not found error in Homecontroller.php ... What I was wrong on here? and at end of article i didn't catch the instruction : "At last autoload the KodeInfo directory so our new class will work" - I mean how to autoload the directory !

PS:: I already added namespace App\Http\Controllers; to the top of Homecontroller and yeah already composer dump autoload also

Any idea?

1
can i know what u trying to route ?? menz what is the url u getting this error?Hamelraj
How have you included it in your Controller? i.e your use statement for it.James
thanks guys for replying , but the issue was resolved .. but anyways Thank you @HamelRaj and thanks for the help man for sharing the code.Sahil
hey thanks man for the help !! @JamesSahil

1 Answers

1
votes

in your HomeController head use this

use App\KodeInfo\jorgchart;

or

$jorg = new App\KodeInfo\JOrgChart();