Can you show this migrations file code?

|
Khaddahamyd 2021-04-02 04:28:25
Pls share your link
jakhongir_bakhodirov 2021-04-02 05:49:39
hi guys
there is an app which some part made by using PHP Api and other part made by using laravel
Can I connect their APIs?
Akshay8778 2021-04-02 06:11:49
Hello everyone, you all members are good in Laravel.
i m not that good in PHP and Laravel
can anyone plz give me suggestion or course, that how i can start php&laravel from besic and go to the advanced level?
Zubidev 2021-04-02 06:22:53
jakhongir_bakhodirov 2021-04-02 05:49:39
hi guys
there is an app which some part made by using PHP Api and other part made by using laravel
Can I connect their APIs?

Yes

natghi2010 2021-04-02 06:31:49
Akshay8778 2021-04-02 06:11:49
Hello everyone, you all members are good in Laravel.
i m not that good in PHP and Laravel
can anyone plz give me suggestion or course, that how i can start php&laravel from besic and go to the advanced level?

The Net Ninja: Laravel 6 Tutorial for Beginners #2 – Installing Laravel

Laravel 6 Tutorial for Beginners #2 – Installing LaravelYouTube
Hey gang, in this Laravel tutorial we’ll install Laravel using Composer. You’ll need PHP & MySQL installed onto your computer to do this. You can do that using XAMPP – https://www.apachefriends.org/index.html

Composer – https://getcomposer.org/

πŸ±β€πŸ‘€πŸ±β€πŸ‘€ JOIN THE CAUSE –
https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg/join
—————————————-
πŸ±β€πŸ’» πŸ±β€πŸ’» My Udemy Courses:
+ Modern JavaScript – https://www.thenetninja.co.uk/udemy/modern-javascript
+ Vue JS & Firebase – http://www.thenetninja.co.uk/udemy/vue-and-firebase
+ D3.js & Firebase – https://www.thenetninja.co.uk/udemy/d3-and-firebase

πŸ±β€πŸ’» πŸ±β€πŸ’» Course Links:
https://github.com/iamshaunjp/laravel-beginners-tutorial/tree/lesson-2

πŸ±β€πŸ’» πŸ±β€πŸ’» Other Related Free Courses:

+ PHP & MySQL for Beginners – https://www.youtube.com/playlist?list=PL4cUxeGkcC9gksOX3Kd9KPo-O68ncT05o
+ Object Oriented PHP – https://www.youtube.com/playlist?list=PL4cUxeGkcC9hNpT-yVAYxNWOmxjxL51Hy

πŸ±β€πŸ’» πŸ±β€πŸ’» The Net Ninja Community Boards:
https://community.thenetninja.co.uk/

Akshay8778 2021-04-02 06:33:26
natghi2010 2021-04-02 06:31:49
The Net Ninja: Laravel 6 Tutorial for Beginners #2 – Installing Laravel

Sir i want full course.
if you have plz share with me.
thanks in advance

jakhongir_bakhodirov 2021-04-02 09:21:41
laravel_discuss-75219.jpg

jakhongir_bakhodirov 2021-04-02 09:22:31
jakhongir_bakhodirov 2021-04-02 09:21:41

guys why this error appeared
I have just created new pigration and I want to migrate these migrations to my local db

sobirjonovs 2021-04-02 09:23:31
jakhongir_bakhodirov 2021-04-02 09:21:41

configure database

ikudratov 2021-04-02 09:24:27
jakhongir_bakhodirov 2021-04-02 09:21:41

table is not exists, check your code or check table in your database for exists!

jakhongir_bakhodirov 2021-04-02 09:25:09
ikudratov 2021-04-02 09:24:27
table is not exists, check your code or check table in your database for exists!

in my code has these migration I want to migrate to db

sobirjonovs 2021-04-02 09:26:00
jakhongir_bakhodirov 2021-04-02 09:25:09
in my code has these migration I want to migrate to db

Create a new database then write it in .env file with appropriate configurations.

ikudratov 2021-04-02 09:28:28
sobirjonovs 2021-04-02 09:26:00
Create a new database then write it in .env file with appropriate configurations.

Then show your migration code and table for exists…

jakhongir_bakhodirov 2021-04-02 09:29:12
laravel_discuss-75226.jpg

jakhongir_bakhodirov 2021-04-02 09:29:22
sobirjonovs 2021-04-02 09:26:00
Create a new database then write it in .env file with appropriate configurations.

I have already done it

ikudratov 2021-04-02 09:32:07
jakhongir_bakhodirov 2021-04-02 09:21:41

You are trying “alter table” see? // where this table does not exists

One Trust 2021-04-02 10:05:52
ikudratov 2021-04-02 09:32:07
You are trying “alter table” see? // where this table does not exists

Ihave get the same problem what wrong with my code
SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘password_resets’ already
exists (SQL: create table password_resets (email varchar(191) not null, token varchar(191) not null, created_at t
677Ò–‒ catch (Exception $e) {
Γ’ΕΎΕ“ 678Ò–‒ throw new QueryException(
679Ò–‒ $query, $this->prepareBindings($bindings), $e
imestamp null) default character set utf8mb4 collate ‘utf8mb4_unicode_ci’ engine = InnoDB)

at C:xampphtdocsclassvendorlaravelframeworksrcIlluminateDatabaseConnection.php:678
674Ò–‒ // If an exception occurs when attempting to run a query, we’ll format the error
675Ò–‒ // message to include the bindings with SQL, which will make this exception a
676Ò–‒ // lot more helpful to the developer instead of just the database’s errors.680Ò–‒ );
681Ò–‒ }
682Ò–‒

1 C:xampphtdocsclassvendordoctrinedballibDoctrineDBALDriverPDOException.php:18
DoctrineDBALDriverPDOException::(“SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘password_resets’ already exists”)

2 C:xampphtdocsclassvendordoctrinedballibDoctrineDBALDriverPDOStatement.php:117
DoctrineDBALDriverPDOException::new(Object(PDOException))

ikudratov 2021-04-02 10:08:05
One Trust 2021-04-02 10:05:52
Ihave get the same problem what wrong with my code
SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘password_resets’ already
exists (SQL: create table password_resets (email varchar(191) not null, token varchar(191) not null, created_at t
677Ò–‒ catch (Exception $e) {
Γ’ΕΎΕ“ 678Ò–‒ throw new QueryException(
679Ò–‒ $query, $this->prepareBindings($bindings), $e
imestamp null) default character set utf8mb4 collate ‘utf8mb4_unicode_ci’ engine = InnoDB)

at C:xampphtdocsclassvendorlaravelframeworksrcIlluminateDatabaseConnection.php:678
674Ò–‒ // If an exception occurs when attempting to run a query, we’ll format the error
675Ò–‒ // message to include the bindings with SQL, which will make this exception a
676Ò–‒ // lot more helpful to the developer instead of just the database’s errors.680Ò–‒ );
681Ò–‒ }
682Ò–‒

1 C:xampphtdocsclassvendordoctrinedballibDoctrineDBALDriverPDOException.php:18
DoctrineDBALDriverPDOException::(“SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘password_resets’ already exists”)

2 C:xampphtdocsclassvendordoctrinedballibDoctrineDBALDriverPDOStatement.php:117
DoctrineDBALDriverPDOException::new(Object(PDOException))

Hey hey dude, before to migrate you need to include path to current table in migrations folder

ikudratov 2021-04-02 10:08:56
php artisan migrate β€”path=/path/to/migration_file
One Trust 2021-04-02 10:10:25
ikudratov 2021-04-02 10:08:05
Hey hey dude, before to migrate you need to include path to current table in migrations folder

Thanks but why sometime it work without any path

One Trust 2021-04-02 10:10:38
ikudratov 2021-04-02 10:08:56
php artisan migrate β€”path=/path/to/migration_file

thanks much

ikudratov 2021-04-02 10:12:43
One Trust 2021-04-02 10:10:25
Thanks but why sometime it work without any path

Because you have done migrate for “password_resets” already before

ikudratov 2021-04-02 10:13:01
One Trust 2021-04-02 10:10:38
thanks much

You welcome, bro!

One Trust 2021-04-02 11:35:26
ikudratov 2021-04-02 10:08:56
php artisan migrate β€”path=/path/to/migration_file

I was run this
php artisan migrate –path=/class/database/migrations
I get respond nothing to migrate

ikudratov 2021-04-02 11:35:58
One Trust 2021-04-02 11:35:26
I was run this
php artisan migrate –path=/class/database/migrations
I get respond nothing to migrate

It’s meaning you have already done it.

One Trust 2021-04-02 11:36:34
ikudratov 2021-04-02 11:35:58
It’s meaning you have already done it.

But in database tables not found

ikudratov 2021-04-02 11:37:58
php artisan migrate:refresh β€”path=/path/to/migration
One Trust 2021-04-02 11:38:29
when the first error occur the in migrations folder it have added those table while in database not found
ikudratov 2021-04-02 11:39:16
One Trust 2021-04-02 11:38:29
when the first error occur the in migrations folder it have added those table while in database not found

Can you show this migrations file code?

jakhongir_bakhodirov 2021-04-02 11:49:07
ikudratov 2021-04-02 11:39:16
Can you show this migrations file code?

Hi how are you
can you help me to join 3 tables

ikudratov 2021-04-02 11:50:25
jakhongir_bakhodirov 2021-04-02 11:49:07
Hi how are you
can you help me to join 3 tables

https://laravel.com/docs/8.x/eloquent-relationships

jakhongir_bakhodirov 2021-04-02 11:50:33
jakhongir_bakhodirov 2021-04-02 11:49:07
Hi how are you
can you help me to join 3 tables

laravel_discuss-75244.jpg
I don’t know why this error happened
i created 2 migration which are connected another migration

jakhongir_bakhodirov 2021-04-02 11:51:08
jakhongir_bakhodirov 2021-04-02 11:50:33
I don’t know why this error happened
i created 2 migration which are connected another migration

when I want to import them into database this error occured

jakhongir_bakhodirov 2021-04-02 11:52:04
laravel_discuss-75246.jpg
when I run migrate:status the 2 two migration did not run
jakhongir_bakhodirov 2021-04-02 11:54:48
ikudratov 2021-04-02 11:50:25
https://laravel.com/docs/8.x/eloquent-relationships

Can I send you project file Can you look through why this error happened
I have been fixing this error for this morning unfortunately I couldn’t solve it

|