Level 102
You need to enable sqlite 3
https://stackoverflow.com/questions/6951824/how-to-use-sqlite-database-with-xampp-using-php
I'm trying to install tnt search driver for laravel scout with composer but I'm getting the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- teamtnt/tntsearch v2.1.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system.
- teamtnt/tntsearch v2.0.0 requires ext-sqlite3 * -> the requested PHP extension sqlite3 is missing from your system.
- teamtnt/laravel-scout-tntsearch-driver v7.2.0 requires teamtnt/tntsearch 2.* -> satisfiable by teamtnt/tntsearch[v2.0.0, v2.1.0].
- Installation request for teamtnt/laravel-scout-tntsearch-driver ^7.2 -> satisfiable by teamtnt/laravel-scout-tntsearch-driver[v7.2.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
My composer.json file:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"andreasindal/laravel-markdown": "3.0.1",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"kriswallsmith/buzz": "^1.0",
"laracasts/utilities": "^3.0",
"laravel/framework": "5.8.*",
"laravel/scout": "^7.2",
"laravel/tinker": "^1.0",
"mailgun/mailgun-php": "^3.0",
"nao-pon/flysystem-google-drive": "~1.1",
"nyholm/psr7": "^1.1",
"spatie/laravel-backup": "^6.2",
"teamtnt/laravel-scout-tntsearch-driver": "^7.2"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0",
"stripe/stripe-php": "^7.4.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
],
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
I'm using XAMP in my windows machine for development.
Please or to participate in this conversation.