mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Added support for Laravel 7 custom casts (#913)
* added support for laravel 7 custom casts * refactored tests; added test cases * added test case * resolved method dublication
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CustomCastsTable extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('custom_casts', static function (Blueprint $table) {
|
||||
$table->string('casted_property_with_return_type');
|
||||
$table->string('casted_property_with_return_docblock');
|
||||
$table->string('casted_property_with_return_primitive');
|
||||
$table->string('casted_property_with_return_primitive_docblock');
|
||||
$table->string('casted_property_with_return_nullable_primitive');
|
||||
$table->string('casted_property_without_return');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user