- Created Note model and controller for handling notes. - Added routes for notes CRUD operations. - Implemented notes index view with search and pinning functionality. - Created migration for notes table with necessary fields. - Developed event creation form with client and contract options.
23 lines
334 B
PHP
23 lines
334 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Note extends Model
|
|
{
|
|
protected $fillable = [
|
|
'title',
|
|
'content',
|
|
'color',
|
|
'is_pinned',
|
|
];
|
|
|
|
protected $casts = [
|
|
'content' => 'array',
|
|
'is_pinned' => 'boolean',
|
|
];
|
|
}
|