samedi 24 octobre 2015

Unexpected 'function' error in laravel 5.1?

Getting error is that Unexpected 'function' when I am using use function view; My operating system is ubuntu and LAMPP server.

Please note it is working fine in windows and xampp.

Why this is error occurring?

My controller,

namespace App\Http\Controllers;

use Illuminate\Routing\Controller as BaseController;
use Symfony\Component\HttpFoundation\Response;
use function view;


class WebController extends BaseController {
}

and error message is, enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire