Removalls and offers revenues
This commit is contained in:
@@ -80,6 +80,8 @@ class Project extends BaseModel {
|
||||
|
||||
public static function removeProject( $projectID )
|
||||
{
|
||||
Offer::whereProjectId( $projectID )->update( ['project_id' => NULL] );
|
||||
|
||||
Project::whereId( $projectID )->delete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user