Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer update #27

Open
Madankmr opened this issue Dec 9, 2021 · 1 comment
Open

composer update #27

Madankmr opened this issue Dec 9, 2021 · 1 comment

Comments

@Madankmr
Copy link

Madankmr commented Dec 9, 2021

C:\xampp\htdocs\job-portal-laravel>composer update
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- laravel/framework[v5.6.0, ..., 5.6.x-dev] require php ^7.1.3 -> your php version (8.0.10) does not satisfy that requirement.
- Root composer.json requires laravel/framework 5.6.* -> satisfiable by laravel/framework[v5.6.0, ..., 5.6.x-dev]. laravel 8 version

@akramkhan1
Copy link

Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table laravel2.education (errno: 150 "Foreign key constraint is incorrectly
formed") (SQL: alter table education add constraint education_user_id_foreign foreign key (user_id) references users (id) on delete cascade)

at C:\xampp\htdocs\job-portal\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {

669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|

Exception trace:

1 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[HY000]: General error: 1005 Can't create table laravel2.education (errno: 150 "Foreign key constraint is incorrectrrectly formed")")
C:\xampp\htdocs\job-portal\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:18

2 Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
C:\xampp\htdocs\job-portal\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:119

Please use the argument -v to see more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants