Anyone have an idea about how to do unit testing in laravel?

|
zey34354 2022-04-04 15:39:22
cayetanohosma 2022-04-04 15:25:52
It seems that the Sessions table or it not deleted or some previous process create it.

why do have to delete them and how to do that ?

cayetanohosma 2022-04-04 15:40:32
OK, so, the next step is, comment all migrations code except the first one and run it, if it not fail, then uncomment the second one and repeat until detect which one try to create again the Sessions table
zey34354 2022-04-04 16:06:39
zey34354 2022-04-04 15:38:55
PS C:xampphtdocseCommerceeCommwece> php artisan migrate –seed
Migrating: 2022_03_19_181248_create_sessions_table

IlluminateDatabaseQueryException

SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘sessions’ already exists (SQL: create table sessions (id varchar(255) not null, user_id bigint unsigned null, ip_address varchar(45) null, user_agent text null, payload text not null, last_activity int not null) default character set utf8mb4 collate ‘utf8mb4_unicode_ci’)

at C:xampphtdocseCommerceeCommwecevendorlaravelframeworksrcIlluminateDatabaseConnection.php:725
721▕ // If an exception occurs when attempting to run a query, we’ll format the error
722▕ // message to include the bindings with SQL, which will make this exception a
723▕ // lot more helpful to the developer instead of just the database’s errors.
724▕ catch (Exception $e) {
➜ 725▕ throw new QueryException(
726▕ $query,
727▕ $this->prepareBindings($bindings),
728▕ $e
729▕ );

1 C:xampphtdocseCommerceeCommwecevendorlaravelframeworksrcIlluminateDatabaseConnection.php:505
PDOException::(“SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘sessions’ already exists”)

2 C:xampphtdocseCommerceeCommwecevendorlaravelframeworksrcIlluminateDatabaseConnection.php:505
PDOStatement::execute()

laravel_discuss-114022.jpg
the place that they are talking about it is here

zey34354 2022-04-04 16:08:30
cayetanohosma 2022-04-04 15:40:32
OK, so, the next step is, comment all migrations code except the first one and run it, if it not fail, then uncomment the second one and repeat until detect which one try to create again the Sessions table

i did get how to make that exactly sorry ?

cayetanohosma 2022-04-04 16:46:19
zey34354 2022-04-04 16:08:30
i did get how to make that exactly sorry ?

Comment the content of all migration files, and then, in a comment on the first one, run the migrations. All goes ok? Then uncomment the next file and try again, repeat this until the error appears or run all migrations

PYCIEN249 2022-04-04 18:06:30
how to make SPA page with livewire 2 in laravel?
Mahdavi095 2022-04-04 18:20:04
PYCIEN249 2022-04-04 18:06:30
how to make SPA page with livewire 2 in laravel?

Livewire best for make interact with forms, tables and small things in page and for full page spa isn,t good enough …

Use inertiajs or nextjs or nuxtjs

rahul8180 2022-04-04 18:53:07
How to check code duplication in php
Jack0150 2022-04-04 19:39:13
Hi All,
Anyone have an idea about how to do unit testing in laravel?
DayGrowing 2022-04-04 19:53:59
Please bosses in house, MVC had suffered today, please help me out…
DayGrowing 2022-04-04 19:54:36
laravel_discuss-114033.jpg

DayGrowing 2022-04-04 19:54:36
laravel_discuss-114032.jpg

DayGrowing 2022-04-04 19:54:36
laravel_discuss-114031.jpg

DayGrowing 2022-04-04 19:54:36
laravel_discuss-114030.jpg

DayGrowing 2022-04-04 19:55:09
That’s my code and the error…
devpsoft 2022-04-04 19:58:03
gaspar giddson 2022-04-04 13:44:00
Any one to save me am getting this error after deployment of my project on server

maybe pdo mysql extension not enabled on php

FlorianFalk 2022-04-04 21:08:28
Jack0150 2022-04-04 19:39:13
Hi All,
Anyone have an idea about how to do unit testing in laravel?

https://laravel.com/docs/9.x/testing#creating-tests

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Noor153 2022-04-04 21:26:20
What is the instruction for the log in button in Larvel6?
Ob1bray 2022-04-04 22:05:59
laravel_discuss-114040.jpg
hello everyone i have a problem with my payment system using stripe.com (my english is not very good so i use a translator, please patience 😀 )
with the credit or debit card validation if you select paymentmode == card (which is the payment with credit or debit card) and leave the fields empty, the payment is not done in stripe.com, but in my database and i get this error.

but if some data is missing in “tu informacion” which are the personal data of the person is not generated and if I do the validations.

the last image is of the administrator mode when I see the details of the purchase that generates when the credit card fields are empty (because it does not validate what I have declared but I think I’m doing it wrong).

I have added the code from my checkout that has the functions for the payment.

Ob1bray 2022-04-04 22:06:00
laravel_discuss-114042.jpg

Ob1bray 2022-04-04 22:06:00
laravel_discuss-114041.jpg

Ob1bray 2022-04-04 22:06:01
laravel_discuss-114043.jpg

arsyandidev 2022-04-04 22:37:23
anyone please help
zey34354 2022-04-05 00:39:56
cayetanohosma 2022-04-04 16:46:19
Comment the content of all migration files, and then, in a comment on the first one, run the migrations. All goes ok? Then uncomment the next file and try again, repeat this until the error appears or run all migrations

i will see it now

pro_ameer 2022-04-05 00:53:07
laravel_discuss-114050.jpg

pro_ameer 2022-04-05 00:53:24
pro_ameer 2022-04-05 00:53:07

Why don’t you set up any library for me?

2022-04-05 01:15:34
Hi everybody
Upwork accounts are available

Location: Canada | France | Germany | Georgia | Japan

Let’s negotiate if you’re looking for an account and you’re looking for a longtime relation.

Jack0150 2022-04-05 06:42:00
FlorianFalk 2022-04-04 21:08:28
https://laravel.com/docs/9.x/testing#creating-tests

Thanks Florian

gaspar giddson 2022-04-05 09:06:44
devpsoft 2022-04-04 19:58:03
maybe pdo mysql extension not enabled on php

Already solve it was due to php version

Rushil Dobariya 2022-04-05 10:12:53
Laravel in ajax dropdown
Rushil Dobariya 2022-04-05 10:13:05
And fetch data
flyingdragons 2022-04-05 10:21:33
Rushil Dobariya 2022-04-05 10:12:53
Laravel in ajax dropdown

https://stackcoder.in/posts/dependency-dropdowns-with-javascript-and-php

Dependency Dropdowns With Javascript And PHP | StackCoderStackCoder
You will learn how to create a <select> dependency dropdown with jQuery Ajax & PHP.
flyingdragons 2022-04-05 10:21:47
The concept remains same.
natghi2010 2022-04-05 10:58:17
has anyone made a SOAP server?
Ami 2022-04-05 11:18:00
Hii

If any one looking for a job work from home and is good with PHP Laravell

Minimum exp required-3+

Plz DM

|