You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Illuminate/database as a standalone component, following the README instructions and SQLite, the following error is thrown when using hasTable: Call to undefined function Illuminate\Database\Schema\rescue().
This was not an issue with prior Laravel version (namely Laravel 8). There's either a missing dependency, missing installation step, or the hard requirement on rescue makes it impossible to use it as a standalone component.
PHP Fatal error: Uncaught Error: Call to undefined function Illuminate\Database\Schema\rescue() in /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/SQLiteBuilder.php:40
Stack trace:
#0 /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/Builder.php(162): Illuminate\Database\Schema\SQLiteBuilder->getTables()
#1 /Users/malou/Desktop/ldb/src/index.php(17): Illuminate\Database\Schema\Builder->hasTable('users')
#2 {main}
thrown in /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/SQLiteBuilder.php on line 40
Fatal error: Uncaught Error: Call to undefined function Illuminate\Database\Schema\rescue() in /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/SQLiteBuilder.php:40
Stack trace:
#0 /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/Builder.php(162): Illuminate\Database\Schema\SQLiteBuilder->getTables()
#1 /Users/malou/Desktop/ldb/src/index.php(17): Illuminate\Database\Schema\Builder->hasTable('users')
#2 {main}
thrown in /Users/malou/Desktop/ldb/vendor/illuminate/database/Schema/SQLiteBuilder.php on line 40
The text was updated successfully, but these errors were encountered:
Laravel Version
10.37.1
PHP Version
8.3.0
Database Driver & Version
SQLite
Description
When using Illuminate/database as a standalone component, following the README instructions and SQLite, the following error is thrown when using
hasTable
:Call to undefined function Illuminate\Database\Schema\rescue()
.This was not an issue with prior Laravel version (namely Laravel 8). There's either a missing dependency, missing installation step, or the hard requirement on
rescue
makes it impossible to use it as a standalone component.Steps To Reproduce
composer require "illuminate/database"
index.php
php index.php
Result :
The text was updated successfully, but these errors were encountered: