Any resource that i can make dynamic contents from db?

|
2021-09-20 12:26:12
Now iam using demo version
Lalit Rana 2021-09-20 12:55:47
Kashyap Parikh 2021-09-20 11:15:22
Post::all();
PHP Error: Class ‘Post’ not found in /var/www/html/your-projecteval()’d code on line 1

Model not define

Maoltech 2021-09-20 13:01:57
Kashyap Parikh 2021-09-20 11:15:22
Post::all();
PHP Error: Class ‘Post’ not found in /var/www/html/your-projecteval()’d code on line 1

Class or method post

alenelis 2021-09-20 14:35:12
2021-09-20 12:26:12
Now iam using demo version

Now, you can pay year subscriptions

Freelance_Recruiter1 2021-09-20 15:17:15
Hi,
Hope you are having a wonderful time.

Tekvology is a community of freelancers and companies and is based in India. If you feel interested to become a part of our community please check or website. You can register yourself as a freelancer and we’ll be sure to reach you to establish requirements and relationship.

tekvology.com

omar khaled 2021-09-20 15:58:11
What’s the defrence between.

update(Request $request, $id),

update(Request $request, Post $post)

Psalmsin 2021-09-20 16:28:19
Hello
please need help on these table

Schema::create(‘otps’, function (Blueprint $table) {
$table->id();
$table->string(‘encodedKey’)->unique()->index()->nullable();
$table->string(‘parentEncodedKey’)->index();
$table->string(‘digit’)->nullable();
$table->dateTime(‘expires_at’)->nullable();
$table->timestamps();

$table->foreign(‘parentEncodedKey’)->references(‘encodedKey’)->on(‘users’)->onDelete(‘cascade’);
$table->foreign(‘parentEncodedKey’)->references(‘encodedKey’)->on(‘drivers’)->onDelete(‘cascade’);
});
i want to connect the table to both User table and driver table using foreign key

cayetanohosma 2021-09-20 16:32:59
Hi, To achieve that @Psalmsin you must define the columns as well, not only the foreign key fields
Psalmsin 2021-09-20 16:36:44
cayetanohosma 2021-09-20 16:32:59
Hi, To achieve that @Psalmsin you must define the columns as well, not only the foreign key fields

am knew to laravel
can your point to where and what to add please

cayetanohosma 2021-09-20 16:37:19
You need to create the fields to hold the foreign key
Dkhicher 2021-09-20 16:38:09
omar khaled 2021-09-20 15:58:11
What’s the defrence between.

update(Request $request, $id),

update(Request $request, Post $post)

First method you will get only id that your sent by route

Second method you will get post model object that laravel find and inject automatically

Dkhicher 2021-09-20 16:43:03
Psalmsin 2021-09-20 16:28:19
Hello
please need help on these table

Schema::create(‘otps’, function (Blueprint $table) {
$table->id();
$table->string(‘encodedKey’)->unique()->index()->nullable();
$table->string(‘parentEncodedKey’)->index();
$table->string(‘digit’)->nullable();
$table->dateTime(‘expires_at’)->nullable();
$table->timestamps();

$table->foreign(‘parentEncodedKey’)->references(‘encodedKey’)->on(‘users’)->onDelete(‘cascade’);
$table->foreign(‘parentEncodedKey’)->references(‘encodedKey’)->on(‘drivers’)->onDelete(‘cascade’);
});
i want to connect the table to both User table and driver table using foreign key

The esiest thing you can do

$this->foreignId(“user_id”)->constrained();

Psalmsin 2021-09-20 16:43:43
cayetanohosma 2021-09-20 16:37:19
You need to create the fields to hold the foreign key

Schema::create(‘otps’, function (Blueprint $table) {
$table->id();
$table->string(‘encodedKey’)->unique()->index()->nullable();
$table->string(‘parentEncodedKey’)->index();
$table->string(‘parentEncodedKey1’)->index();
$table->string(‘digit’)->nullable();
$table->dateTime(‘expires_at’)->nullable();
$table->timestamps();

$table->foreign(‘parentEncodedKey’)->references(‘encodedKey’)->on(‘users’)->onDelete(‘cascade’);
$table->foreign(‘parentEncodedKey1’)->references(‘encodedKey’)->on(‘drivers’)->onDelete(‘cascade’);
}); like

omar khaled 2021-09-20 17:16:01
Dkhicher 2021-09-20 16:38:09
First method you will get only id that your sent by route

Second method you will get post model object that laravel find and inject automatically

What is the best

Dkhicher 2021-09-20 17:17:54
omar khaled 2021-09-20 17:16:01
What is the best

2nd

amitshha 2021-09-20 18:25:23
Log 2 base 2 data structures and algorithm + pointers video series free
Price 300
JonsM90 2021-09-20 18:42:24
hi laravel s3 AWS_DEFAULT_REGION = us-east-1 what is this
JonsM90 2021-09-20 18:43:36
I live in Central Asia and I can choose any region
poppyhusk 2021-09-20 19:09:26
JonsM90 2021-09-20 18:43:36
I live in Central Asia and I can choose any region

it doesn’t depend on your region its your project’s region that matters.

likemind021 2021-09-20 19:21:16
laravel_discuss-95005.jpg
Contents in my index.php file changed to this. I changed it back to Original content, it still came back to this. The website has been running for a while before it stops working
likemind021 2021-09-20 19:21:38
likemind021 2021-09-20 19:21:16
Contents in my index.php file changed to this. I changed it back to Original content, it still came back to this. The website has been running for a while before it stops working

Please help

bryan_king 2021-09-20 19:23:11
likemind021 2021-09-20 19:21:16
Contents in my index.php file changed to this. I changed it back to Original content, it still came back to this. The website has been running for a while before it stops working

Did you write this ??

likemind021 2021-09-20 19:25:05
bryan_king 2021-09-20 19:23:11
Did you write this ??

Noo

poppyhusk 2021-09-20 19:39:58
likemind021 2021-09-20 19:21:16
Contents in my index.php file changed to this. I changed it back to Original content, it still came back to this. The website has been running for a while before it stops working

you have been hacked

poppyhusk 2021-09-20 19:40:27
and make sure your laravel application has right kind of permissions
poppyhusk 2021-09-20 19:40:37
somehow your index file was written by user
likemind021 2021-09-20 19:45:29
poppyhusk 2021-09-20 19:39:58
you have been hacked

Okay

2021-09-20 20:01:29
Hi everyone. Have any of you used the zoom API?
JonsM90 2021-09-20 20:24:20
poppyhusk 2021-09-20 19:09:26
it doesn’t depend on your region its your project’s region that matters.

understandable

JonsM90 2021-09-20 20:27:37
how to check the Amazon AWS API link in the project
Somewherewithmahim 2021-09-20 20:52:03
Any resource that i can make dynamic contents from db ?
heartless980 2021-09-20 21:04:07
I want to give access users to create user and storeadmin… I have roles table
My three roles is admin storeadmin and user
Senior help me how can i do it
jreadr 2021-09-20 21:05:28
laravel_discuss-95019.jpg
Please how to update multi rows
Like here in Laravel
I want to update classid and amount of fee_category_id (1)
Please any help ❤️
poppyhusk 2021-09-20 21:05:58
JonsM90 2021-09-20 20:27:37
how to check the Amazon AWS API link in the project

Try finding in your bills they lost every service and its region there.

jreadr 2021-09-20 21:06:25
laravel_discuss-95021.jpg
This is the sore code
|