php - Is there a way to create a database table when a button is click at the frontend end in Laravel
one text
please is there a way to create a new table in Laravel when a button is clicked at the front end. Something like this.
CREATE TABLE MyGuests
(
id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
firstname VARCHAR(30) NOT NULL,
lastname VARCHAR(30) NOT NULL,
email VARCHAR(50),
reg_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
Source