** PLEASE TAKE NOTE: This is for Laravel 4 **
The way unique works (In laravel 4):
unique:{tableName},{columnName}
Try
public static $rules = array(
'UID' => 'required|unique:{tableName},uid|unique:{tableName},project_id'
);
** PLEASE TAKE NOTE: This is for Laravel 4 ****