public static function bootLaraclip()
	{
		static::saved(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->afterSave($instance);
				}
			}
		});

		static::deleting(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->beforeDelete($instance);
				}
			}
		});

		static::deleted(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->afterDelete($instance);
				}
			}
		});
	}
public static function bootLaraclip()
	{
		static::saved(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->afterSave($instance);
				}
			}
		});

		static::deleting(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->beforeDelete($instance);
				}
			}
		});

		static::deleted(function($instance) {
			if(is_array($instance->attachedFiles))
			{
				foreach($instance->attachedFiles as $attachedFile) {
					$attachedFile->afterDelete($instance);
				}
			}
		});
	}
public static function bootLaraclip ( ) { static :: saved ( function ( $ instance ) { if ( is_array ( $ instance -> attachedFiles ) ) { foreach ( $ instance -> attachedFiles as $ attachedFile ) { $ attachedFile -> afterSave ( $ instance ) ; } } } ) ; static :: deleting ( function ( $ instance ) { if ( is_array ( $ instance -> attachedFiles ) ) { foreach ( $ instance -> attachedFiles as $ attachedFile ) { $ attachedFile -> beforeDelete ( $ instance ) ; } } } ) ; static :: deleted ( function ( $ instance ) { if ( is_array ( $ instance -> attachedFiles ) ) { foreach ( $ instance -> attachedFiles as $ attachedFile ) { $ attachedFile -> afterDelete ( $ instance ) ; } } } ) ; }
Register eloquent event handlers.
We'll spin through each of the attached files defined on this class
and register callbacks for the events we need to observe in order to
handle file uploads.

@return void
Register eloquent event handlers . We ll spin through each of the attached files defined on this class and register callbacks for the events we need to observe in order to handle file uploads .