Reputation: 2563
Hi guys I am new to laravel.
I just started my project for a login
I create a project and made a successful login using the command php artisan make:auth
.
Now i am trying to create a comment system.I want guide to create it.
Please tell me how can i send the data with a button from the textarea
to a new table in my preexisting database and to receive that data to my
commentarea.
Thank you
Upvotes: 2
Views: 113
Reputation: 2580
php artisan make:migration <name of the file>
. For eg. i am using name of the file as conor.php artisan make:migration conor
conor.php
file in databse/migrations
up()
function you can see there is an already created Schema::create
$table->increments('id');
something like this also$table->
+<name of the tabel structure>
+('<name of the column>');
php artisan serve
do an one time php artisan migrate
to register the tableUpvotes: 1