added database when tried running php artisan migrate got error
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /home/pratik/gitlab/blog/bootstrap/app.php:14
Stack trace:
#0 /home/pratik/gitlab/blog/artisan(20): require_once()
#1 {main}
thrown in /home/pratik/gitlab/blog/bootstrap/app.php on line 14
yes laravel installer is updated also composer dump-autoload show
Generating optimized autoload files
Class Illuminate\Foundation\ComposerScripts is not autoloadable, can not call post-autoload-dump script
> @php artisan package:discover --ansi
PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Application' not found in /home/pratik/gitlab/Task/bootstrap/app.php:14
Stack trace:
#0 /home/pratik/gitlab/Task/artisan(20): require_once()
#1 {main}
thrown in /home/pratik/gitlab/Task/bootstrap/app.php on line 14
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255
there was no composer.lock. i deleted vendor it showed this.
No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v8.12.0, ..., 8.x-dev] require ext-mbstring * -> it is missing from your system. Install or enable PHP's mbstring extension.
- Root composer.json requires laravel/framework ^8.12 -> satisfiable by laravel/framework[v8.12.0, ..., 8.x-dev].
You are getting somewhere now. Install the requested extension. What development system are you running on? Mac? Windows (xampp?). You need to install it there.