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:
belamov
2020-04-22 06:32:40 +02:00
committed by GitHub
parent dcf76c1a81
commit cfa9a81d65
11 changed files with 340 additions and 1 deletions
@@ -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');
});
}
}