View main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
// ... other settings we don't care about now | |
async viteFinal(config, { configType }) { | |
config.base = ''; // './' also works, but i like "assets/.." urls better than "./assets/..." urls. | |
return config; | |
}, | |
}; |
View database.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Str; | |
return [ | |
// Other settings we don't care about. | |
'connections' => [ | |
View CreateUserMigration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
View EngineMigrationCoversionDemo.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CovertAllTablesEngineToInnodb extends Migration | |
{ | |
/** | |
* Run the migrations. |
View ExampleController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controllers; | |
use App\Models\User; | |
use App\Models\Verification; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Http\Request; |
View ExampleController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controllers; | |
use App\Models\User; | |
use App\Models\Verification; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Http\Request; |
View Example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
public static function iAm() { | |
return "A"; | |
} | |
} | |
// echo A::iAm(); // "A" |
View Example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
private function foo() { | |
echo "success!\n"; | |
} | |
public function test() { | |
static::foo(); | |
} | |
} |
View Example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Animal { | |
public static function makeSound(){ | |
echo "Animal"; | |
} | |
public static function vocalize() { | |
echo static::makeSound(); | |
} |
View Example.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Animal { | |
public static function makeSound(){ | |
echo "Animal"; | |
} | |
public static function vocalize() { | |
echo self::makeSound(); | |
} |
NewerOlder