public function up() {
Schema::create('table', function (Blueprint $table) {
$table->bigIncrements('id'); $table->timestamps();
});
}
Asked
Active
Viewed 816 times
-1
Piazzi
- 2,490
- 3
- 11
- 25
Yude Mongz
- 1
- 2
-
2Possible duplicate of [What does double colon in laravel means](https://stackoverflow.com/questions/39198357/what-does-double-colon-in-laravel-means) – Travis Britz Mar 30 '19 at 12:02
-
Possible duplicate of [Access Static properties using PHP object](https://stackoverflow.com/questions/17107869/access-static-properties-using-php-object) – Loek Mar 30 '19 at 13:17
2 Answers
6
I'ts the way PHP allows you to access properties, static, constant and methods from a Class.
In this case you are accessing the create method from the Schema Class
For more info: Docs
A little example from the PHP docs:
<?php
class MyClass {
const CONST_VALUE = 'A constant value';
}
$classname = 'MyClass';
echo MyClass::CONST_VALUE;
?>
Piazzi
- 2,490
- 3
- 11
- 25
0
PHP Scope resolution operator
https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
imabug
- 278
- 1
- 5
- 10