I try to run Laravel on a synology NAS, but I have big troubles with the PHP-Version. I already installed php 7.0 over the PackageManger but when I login via SSH and type
php -v
it shows me, that php 5.6 (cli) is installed. how can i change the cli version????
I searched about 3h for a solution but nothing worked yet... please help me!! :(
you can install Laravel by using php72, if you have php 7.2 installed on your NAS:
or you can create alias in your .profile file like this:
alias php="php72"
and then use command php instead of php72
I am able to install Laravel and use artisan and create and apply migration to the database, but when I want to query db for example like this: use App\Tasks; $tasks = Tasks::all(); I get an error "could not find driver (SQL: select * from tasks)" Any idea? Thanks