app/Service/AppIdGeneratorService.php
/**
     * generate a unique appId for a new app in the system.
     *
     * @return integer
     */
generate a unique appId for a new app in the system.
@return integer
generate a unique appId for a new app in the system . @return integer
public function generateAppId()
    {
        $appId = AppId::first();
        AppId::first()->increment('number');
        return $appId->number;
    }
public function generateAppId ( ) { $ appId = AppId :: first ( ) ; AppId :: first ( ) -> increment ( 'number' ) ; return $ appId -> number ; }
generate a unique appId for a new app in the system.
generate a unique appId for a new app in the system .