title: Laravel casts set date format not working
body: <p>faced such a problem. There is a Booking model. Booking has fields time_from and time_to. When I call some kind of Booking want so that the format is different. Tried using $casts = ['time_from' =&gt; 'datetime:m-d-Y']; not working! What could be the problem???</p>
  <p>Model</p>
  <pre><code>class Booking extends Model
  {
      use HasFactory;
      protected $casts = [
          'time_from' =&gt; 'datetime:m-d-Y',
          'time_to' =&gt;  'datetime:m-d-Y'
      ];
      protected $dateFormat = 'm-d-y';
      protected $fillable = [
          'room_id',
          'time_from',
          'time_to',
          'first_name',
          'last_name',
          'phone',
          'email',
          'special_requirements',
          'when_wait_you',
      ];
  
      public function room(){
          return $this-&gt;belongsTo(Room::class);
      }
  }
  </code></pre>
  <p>Migration</p>
  <pre><code>    public function up()
      {
          Schema::create('bookings', function (Blueprint $table) {
              $table-&gt;id();
              $table-&gt;bigInteger('room_id');
              $table-&gt;dateTime('time_from');
              $table-&gt;dateTime('time_to');
              $table-&gt;string('first_name');
              $table-&gt;string('last_name');
              $table-&gt;string('phone');
              $table-&gt;string('email');
              $table-&gt;text('special_requirements')-&gt;nullable();
              $table-&gt;string('when_wait_you')-&gt;nullable();
              $table-&gt;timestamps();
          });
      }
  </code></pre>
  <p>Result</p>
  <p><a href="https://i.stack.imgur.com/fysNB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fysNB.png" alt="enter image description here" /></a></p>