title: How to use traits in Laravel models?
body: <p>Hello i'm laravel beginner</p>
  
  <p>I want to make trait and use it in my model but at run time i got error that the trait is not found</p>
  
  <p>my trait :</p>
  
  <pre><code>namespace App;
  use Illuminate\Support\Facades\Schema;
  
  trait GeneralModel
  {
      public static function testStaticFunction()
      {
          dd('test');
      }
  }
  </code></pre>
  
  <p>my model :</p>
  
  <pre><code>namespace App;
  use Illuminate\Database\Eloquent\Model;
  
  class Comment extends Model
  {
      use GeneralModel;
  }
  </code></pre>
  
  <p>my controller</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use App\Comment;
  
  class SearchController extends Controller
  {
      public function find()
      {
          Comment::testStaticFunction();
      }
  }
  </code></pre>
  
  <p>error received </p>
  
  <p>Trait 'App\GeneralModel' not found</p>