Web Development Banner

Migrations

IssuesphpPHP allows for the creation of tables using migrations; let’s look at an example.

					
						use App\Models\User;
					
				

User Migration

Remember to include an array containing the information to be inserted.

					
						issuesphp:make:auth				
					
				

Create an instance and use the special method of `ipmodel`.

											
						$user = new User();
						$user->getAuthTable();				
					
				
											
						$dataAdmin = array(
						"email" => 'admin@issuesphpframework.online'				         
						);

						$user->insert($dataAdmin);