Php artisan error no direct script access allowed

1

I am working with laravel 5.2 and php 7.1.7 , the problem is that when I try to use some artisan command to raise the server with the command php artisan serve I get:

  

no direct script access allowed

on the console and it will not let me start.

I also tried doing a composer clear-cache and then composer update but when I do the update I also get the:

  

no direct script access allowed

and I do not know how to fix it. Any ideas?

    
asked by Miguel C. 21.09.2017 в 14:30
source

1 answer

2

I already solved it or at least for now comment the line if ( ! defined('BASEPATH')) exit('No direct script access allowed'); in my two files where they appeared that it was in app/AuthLDAP.php and in config/authldap.php . It seems to work for now.!

    
answered by 21.09.2017 в 17:55