To write migrations in laravel, we have different methods to apply them to our $table
columns. One of them, for example, is nullable()
which makes that column nullable.
I want to know, where do functions like nullable()
have been defined. I cannot see anything such as public function nullable()
in laravel. This must be in one of these classes but I can not find it:
1) vendor\laravel\framework\src\Illuminate\Database\Schema\ColumnDefinition
2) vendor\laravel\framework\src\Illuminate\Support\Fluent
3) vendor\laravel\framework\src\Illuminate\Database\Schema\Blueprint
or any other class extended from these or any other trait used in one of these.
Where do these functions have been defined?