How many ways we can insert data in laravel?

|
simon_an 2020-10-07 18:47:59
Show your controller then
Vidya Arunkumar 2020-10-07 18:49:16
laravel_discuss-54009.jpg
Store function in controller
Vidya Arunkumar 2020-10-07 18:49:38
Also please help me in form how to define action
hardik 2020-10-07 18:52:00
You are using get method
hardik 2020-10-07 18:52:10
get(
hardik 2020-10-07 18:52:23
Change to post
Vidya Arunkumar 2020-10-07 18:54:07
hardik 2020-10-07 18:52:23
Change to post

Wr….in controller or in route

hardik 2020-10-07 18:55:32
You can’t go directly in controller
hardik 2020-10-07 18:55:56
You have to define route in web route
hardik 2020-10-07 18:57:37
Which version , 7 or 8
Dkhicher 2020-10-07 18:58:26
Vidya Arunkumar 2020-10-07 18:35:37
How to connect database by using laravel please send any video link that helps me

Search the test coder laravel series

ItsAhmedAtef 2020-10-07 19:00:27
what I’m messing
simon_an 2020-10-07 19:01:24
Vidya Arunkumar 2020-10-07 18:49:16
Store function in controller

How are you writing this?

simon_an 2020-10-07 19:02:31
Why
File Name
and not
FileName
?
simon_an 2020-10-07 19:03:08
Do you understand what you’re doing Vidya ?
2020-10-07 19:05:32
Iva12_rastogi 2020-10-07 16:22:11
How many ways we can insert data in laravel?

There are basically two ways, db queries n eloquent

simon_an 2020-10-07 19:06:08
Vidya https://www.javatpoint.com/laravel-file-upload

Laravel File Upload – Javatpointwww.javatpoint.com
Laravel File Upload with Laravel Tutorial, What is Laravel, Laravel Introduction, Features of Laravel, Laravel Routing Advantage of Laravel, Laravel Installation, First Laravel Project, XAMPP Installation, How to Install Laravel etc.
simon_an 2020-10-07 19:06:42
Read that, it will help you get started with file upload Vidya
ALIBAKIL 2020-10-07 19:12:17
Please help me from where i start learning laravel
req98 2020-10-07 19:13:48
ALIBAKIL 2020-10-07 19:12:17
Please help me from where i start learning laravel

Youtube

Vidya Arunkumar 2020-10-07 19:15:59
simon_an 2020-10-07 19:03:08
Do you understand what you’re doing Vidya ?

Ha ok will change this

Vidya Arunkumar 2020-10-07 19:16:12
simon_an 2020-10-07 19:06:42
Read that, it will help you get started with file upload Vidya

Ok tq😊

Vidya Arunkumar 2020-10-07 19:16:42
hardik 2020-10-07 18:57:37
Which version , 7 or 8

7

Iva12_rastogi 2020-10-07 19:17:05
2020-10-07 19:05:32
There are basically two ways, db queries n eloquent

Ok thanks 😊

simon_an 2020-10-07 19:17:35
ALIBAKIL 2020-10-07 19:12:17
Please help me from where i start learning laravel

https://laravel.com/

hardik 2020-10-07 19:18:37
ALIBAKIL 2020-10-07 19:12:17
Please help me from where i start learning laravel

First clear MVC architecture

hardik 2020-10-07 19:18:49
Concepts
Vidya Arunkumar 2020-10-07 19:19:45
simon_an 2020-10-07 19:06:08
Vidya https://www.javatpoint.com/laravel-file-upload

Actually previously I used this one…..wait tomarow I once use this and let you knw

2020-10-07 19:29:25
Iva12_rastogi 2020-10-07 19:17:05
Ok thanks 😊

No problem. I’m also a begineer, but I’m loving laravel so far

ItsAhmedAtef 2020-10-07 19:30:59
why I’m getting coulmn not found in field list while it exist ? and in the model also as fillable ?
Dkhicher 2020-10-07 19:31:56
ItsAhmedAtef 2020-10-07 19:30:59
why I’m getting coulmn not found in field list while it exist ? and in the model also as fillable ?

For getting any column via model you dont need to provide fillable properties

Dkhicher 2020-10-07 19:32:22
Match your column name
ItsAhmedAtef 2020-10-07 19:33:20
Dkhicher 2020-10-07 19:31:56
For getting any column via model you dont need to provide fillable properties

i added new coulmn from phpmyadmin then i added the field in the protected fillable

ItsAhmedAtef 2020-10-07 19:33:51
how should i do it ? the name is correct
Dkhicher 2020-10-07 19:34:20
Show error
ItsAhmedAtef 2020-10-07 19:34:49
ItsAhmedAtef 2020-10-07 09:43:07
Hi all
i added new column in table by phpmyadmin and the field called ‘requests_type’

then i added this to controller and this problem happened

..

Dkhicher 2020-10-07 19:34:55
ItsAhmedAtef 2020-10-07 19:33:20
i added new coulmn from phpmyadmin then i added the field in the protected fillable

Its okay. Main thing that you have that particular column or not that you getting in your app

Dkhicher 2020-10-07 19:36:03
Your controller code and table structure
Dkhicher 2020-10-07 19:36:13
Send picture
ItsAhmedAtef 2020-10-07 19:36:25
ok
ItsAhmedAtef 2020-10-07 19:36:50
ItsAhmedAtef 2020-10-07 09:47:25
you mean here ?

in app

Roham0010 2020-10-07 19:37:33
ItsAhmedAtef 2020-10-07 19:34:49
..

Isn’t your field
request_type without “s” you used requests_type

Dkhicher 2020-10-07 19:38:08
Your controller side where you adding data into table
Dkhicher 2020-10-07 19:38:36
Via model or DB whatever you using
ItsAhmedAtef 2020-10-07 19:38:49
Roham0010 2020-10-07 19:37:33
Isn’t your field
request_type without “s” you used requests_type

no the name is correct

ItsAhmedAtef 2020-10-07 19:40:27
if enabled it will show the error
ItsAhmedAtef 2020-10-07 19:41:52
Dkhicher 2020-10-07 19:38:36
Via model or DB whatever you using

laravel_discuss-54058.jpg

Dkhicher 2020-10-07 19:42:30
Table from phpmyadmin
ItsAhmedAtef 2020-10-07 19:44:37
Dkhicher 2020-10-07 19:42:30
Table from phpmyadmin

laravel_discuss-54060.jpg

Dkhicher 2020-10-07 19:46:05
Try to add fresh entry
|