I have a function inside my model class that inserts data into the database it's something like this:
public function insert($name){
$this->name = $name;
}
Then on the terminal I'm calling the function to insert a data:
$project->insert('Test')
$project->save()
I am able to insert data into the database, but when I want to insert another set of data the first one that I inserted just gets overwritten. What do I do so it won't get overwritten?