Then how can I do that without erasing my records?

|
ashu borkar 2021-04-06 08:04:47
Is there any vacancy for fresher I am looking for a job in Ruby on rails developer or laravel developer as a fresher joining immediately #wfh
itspirate 2021-04-06 08:30:11
Clear me one thing …
Let I have a table on database with some records and I want to add an extra column on that table

But if I change the table.php by adding an extra column and refreshing the migrate. the records will be gone right ?

Then how can I do that without erasing my records ?

Prem Soni 2021-04-06 08:33:15
php artisan make:migration add_votes_to_users_table –table=users
Prem Soni 2021-04-06 08:34:06
itspirate 2021-04-06 08:30:11
Clear me one thing …
Let I have a table on database with some records and I want to add an extra column on that table

But if I change the table.php by adding an extra column and refreshing the migrate. the records will be gone right ?

Then how can I do that without erasing my records ?

like this you can add column in laravel without erasing database

2021-04-06 10:22:25
@pringal7 @cayetanohosma ok guys it was because of the php version.
I had a 8.0 version in my system and the project was using php 7.3 . So I changed the version to 7.4 and it worked. I think 8.0 doesn’t support some dependencies that’s why I was facing that problem.
Thankyou for your help and guidance.😇
pringal7 2021-04-06 10:27:38
2021-04-06 10:22:25
@pringal7 @cayetanohosma ok guys it was because of the php version.
I had a 8.0 version in my system and the project was using php 7.3 . So I changed the version to 7.4 and it worked. I think 8.0 doesn’t support some dependencies that’s why I was facing that problem.
Thankyou for your help and guidance.😇

You’re most welcome 👍

pringal7 2021-04-06 10:28:50
You can use the logic to convert club point into currencny and then you can pay them.
pringal7 2021-04-06 10:34:29
focalfossa20 2021-04-05 19:03:02
I need model relation

In course model you can use this relation

public function curriculum() {
return $this->hasMany(‘AppCurriculum’,’course_id’,’id’);
}

pringal7 2021-04-06 10:39:56
Any payment gateway is there already ?
pringal7 2021-04-06 10:40:08
Or need to integrate from scratch.
pringal7 2021-04-06 10:40:36
If not then you can use the Stripe payment gateway.
pringal7 2021-04-06 10:40:58
Which one?
Shahid_Patel_92 2021-04-06 10:54:49
Any body have examples of epub.js.
Shahid_Patel_92 2021-04-06 10:55:04
How to use epub.js?
focalfossa20 2021-04-06 11:05:37
-1

I want to create an API to store the course, when I’m trying to return CourseLectureResource I’m getting a null value in lecture_detail like this, [this is output for the error: https://pastebin.com/xzfHbC9r]. But if I try to return CurriculumLectureResource in my CurriculumController I get all the values like this, [this is output when I’m getting all value:https://pastebin.com/7Vy5sshL]. What’s wrong with my code?

this is the [CurriculumController:https://pastebin.com/4NUfwNQC], [CurriculumLectureResource:https://pastebin.com/nw9GmHBJ], [CourseController:https://pastebin.com/GkuPsyAj ], this is the code where getting the error[CourseLectureResource:https://pastebin.com/G9Bu3Q23]

output_CourseLectureResource – Pastebin.comPastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
jakhongir_bakhodirov 2021-04-06 11:11:58
Hi guys how are you
How Can I sort string numbers like “954” … ?
is it possible to sort string number
why I am asking this question I have implement four basics math methods (+ – * / in string number
saboorhamedi 2021-04-06 11:41:33
themanojyadav 2021-03-25 08:44:16
Hey guyes, i have one issue in payment gateway. When payment is success and comes back to my success page. Then the session expires automatically, which causes user logged out. How to solve this issue

laravel_discuss-75625.jpg
Hello guys, I’m tying to insert image, I get something like this,

pringal7 2021-04-06 11:42:11
jakhongir_bakhodirov 2021-04-06 11:11:58
Hi guys how are you
How Can I sort string numbers like “954” … ?
is it possible to sort string number
why I am asking this question I have implement four basics math methods (+ – * / in string number

Convert 954 to 9,5,4

$xyz=”9,5,4″;

sort($xyz, SORT_NUMERIC);
echo $xyz;

jakhongir_bakhodirov 2021-04-06 11:43:16
pringal7 2021-04-06 11:42:11
Convert 954 to 9,5,4

$xyz=”9,5,4″;

sort($xyz, SORT_NUMERIC);
echo $xyz;

954 number is equal “954” in string number

saboorhamedi 2021-04-06 11:45:23
saboorhamedi 2021-04-06 11:41:33
Hello guys, I’m tying to insert image, I get something like this,

Okay I solved the problem thank you

saboorhamedi 2021-04-06 11:45:34
saboorhamedi 2021-04-06 11:41:33
Hello guys, I’m tying to insert image, I get something like this,

$file = $request->file(‘image’);
$extension = $file->getClientOriginalExtension(); // you can also use file name
$fileName = time().’.’.$extension;
$path = public_path().’/postImage’;
$file->move($path,$fileName);

saboorhamedi 2021-04-06 11:45:53
in case someone need it
Azad Akhtar 2021-04-06 12:08:51
hell all
i have given all permission but again getting error->
Forbidden
You don’t have permission to access this resource.
Azad Akhtar 2021-04-06 12:09:07
https://prnt.sc/115kw1b

ScreenshotLightshot
Captured with Lightshot
Azad Akhtar 2021-04-06 12:09:47
i have given all permission but again getting error->
Forbidden
You don’t have permission to access this resource.
Azad Akhtar 2021-04-06 12:09:59
again getting error on server
Azad Akhtar 2021-04-06 12:10:16
Anyone can help me?
pringal7 2021-04-06 12:13:29
Azad Akhtar 2021-04-06 12:10:16
Anyone can help me?

May be recursive permission needed, Each files of the folder.

Kapil Sharma 2021-04-06 12:22:26
How can prevent my custom command to stop on error instead skip that one part and continuosly work on other
Meoeeeew 2021-04-06 12:31:59
Kapil Sharma 2021-04-06 12:22:26
How can prevent my custom command to stop on error instead skip that one part and continuosly work on other

defensive programming

Kapil Sharma 2021-04-06 12:34:09
Meoeeeew 2021-04-06 12:31:59
defensive programming

How i dont know abhout it

Kapil Sharma 2021-04-06 12:34:21
About
2021-04-06 12:57:51
Try ball catch out system 🙃
focalfossa20 2021-04-06 13:48:53
help me guys to resolve my error in this link: https://stackoverflow.com/questions/66967017/how-to-separate-response-in-one-function-in-laravel-api

How to separate response in one function in laravel apiStack Overflow
I want to separate the CourseLectureResource response and the CourseQuizResource response on one function, namely the store function in CourseController, how to separate the two, I’ve tried using i…
2021-04-06 13:58:31
laravel_discuss-75646.jpg
https://api.whatsapp.com/send?phone=919682900324&text=I%27m%20intrested%20to%20hire%20you%2006/04/21
|