laravel and phpunit: could not find driver (SQL: PRAGMA foreign_keys = ON;)

If You face this problem (could not find driver (SQL: PRAGMA foreign_keys = ON;)) You can simply run bellow command on your Ubuntu system sudo apt-get install php-sqlite3 Also if you want to install specific version like php 8.1 simply run bellow command sudo apt install php8.1-sqlite3 You might need to enable pdo_sqlite extension in … Read more

Logging out via a link in Laravel

When you run php artisan make:auth, the default app.php in Laravel 5.5 does it like this: <a href=”https://stackoverflow.com/questions/43087648/{{ route(“logout’) }}” onclick=”event.preventDefault(); document.getElementById(‘logout-form’).submit();”> Logout </a> <form id=”logout-form” action=”https://stackoverflow.com/questions/43087648/{{ route(“logout’) }}” method=”POST” style=”display: none;”> {{ csrf_field() }} </form>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)