Skip to content

Commit

Permalink
remove trait on the class
Browse files Browse the repository at this point in the history
  • Loading branch information
khamdullaevuz committed Mar 24, 2023
1 parent 72f8507 commit 10f05c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 11 additions & 0 deletions src/Exceptions/TranslationExist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Khamdullaevuz\LaravelTranslation\Exceptions;

class TranslationExist extends \Exception
{
public function __construct($message = 'Translation already exists', $code = 0, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
3 changes: 0 additions & 3 deletions src/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
namespace Khamdullaevuz\LaravelTranslation;

use Khamdullaevuz\LaravelTranslation\Models\Translation as TranslationModel;
use Khamdullaevuz\LaravelTranslation\Traits\Translatable;

class Translation
{
use Translatable;

public function make($table_name, $column_name, $value, $locale, $foreign_key)
{
return TranslationModel::create([
Expand Down

0 comments on commit 10f05c0

Please sign in to comment.