src/models/LinkableModel.php
public static function boot()
	{
		parent::boot();

		// Delete all links when deleting any LinkableModel.
		static::deleting(function($model) {
			with(App::make('MenuItem'))->where('fmodel', short_name($model))
				                       ->where('fid', $model->id)
				                       ->delete();
		});
	}
public static function boot()
	{
		parent::boot();

		// Delete all links when deleting any LinkableModel.
		static::deleting(function($model) {
			with(App::make('MenuItem'))->where('fmodel', short_name($model))
				                       ->where('fid', $model->id)
				                       ->delete();
		});
	}
/////////////////////////////////////////////