This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| namespace App\Traits; | |
| use Illuminate\Support\Str; | |
| use App\Exceptions\InvalidEnumException; | |
| trait Enums | |
| { | |
| /** | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CREATE proc [dbo].[sp_MSforeachtable] | |
| @command1 nvarchar(2000), @replacechar nchar(1) = N'?', @command2 nvarchar(2000) = null, | |
| @command3 nvarchar(2000) = null, @whereand nvarchar(2000) = null, | |
| @precommand nvarchar(2000) = null, @postcommand nvarchar(2000) = null | |
| AS | |
| declare @mscat nvarchar(12) | |
| select @mscat = ltrim(str(convert(int, 0x0002))) | |
| if (@precommand is not null) | |
| exec(@precommand) |