Closed dunglas closed 1 month ago
Provide a more idiomatic way to mark an Eloquent model as an ApiResource (annotations still work!):
namespace App\Models; use ApiPlatform\Laravel\IsApiResource; use Illuminate\Database\Eloquent\Model; class Author extends Model { use IsApiResource; }
Provide a more idiomatic way to mark an Eloquent model as an ApiResource (annotations still work!):