I am very new to Laravel and PHP in general, most of what I have worked on has been relative to online tutorials. I know how to save single items like a username or password to my database but I am clueless when it comes to storing an entire file.This is how my database is currently formatted in my migration file:
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
$table->string('username');
$table->string('email')->unique();
$table->string('password', 60);
$table->string('remember_token')->nullable();
$table->timestamps();
});
}
Any help is appreciated, let me know is more information about my project is needed.
Edit:
Example of JSON file similar to what I will be using:
{"Date 1": {
"Item 1": {
"para1": "word",
"para2": 100,
},
"Item 2": {
"para1": "word",
"para2": 100,
},
"Item 3": {
"para1": "word",
"para2": 100,
}
}
"Date 2": {
"Item 1": {
"para1": "word",
"para2": 100,
},
"Item 2": {
"para1": "word",
"para2": 100,
},
"Item 3": {
"para1": "word",
"para2": 100,
}
}}