Open CasperHK opened 2 weeks ago
I have already tested to return a string in the loadDashboard method but the problem stil exist. And, I have also tried the Class@Method calls but it also does not work.
$router->get('/', "\App\Http\Controllers\DashboardController@loadDashboard");
Check the loadDashboard method: Make sure the loadDashboard method in DashboardController returns a string. For example:
public function loadDashboard() { return 'Welcome to the Dashboard!'; }
Also, you can use Servbay instead of Xampp to deploy. Servbay can install the packages you need and eliminate environment bugs
It appears that Servbay is only supported in a Mac environment, but I am using Windows for the development.
I would like to call to the
loadDashboard()
method in\App\Http\Controllers\DashboardController
class but failed. The program are somethings like:Error Message
Please help to resolve the issue.