Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 11.x #87

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@


## [1.0.6](https://github.com/justdlabs/inertia.ts/compare/1.0.5...1.0.6) (2024-08-07)

## [1.0.5](https://github.com/justdlabs/inertia.ts/compare/1.0.4...1.0.5) (2024-08-07)

## [1.0.4](https://github.com/justdlabs/inertia.ts/compare/1.0.3...1.0.4) (2024-08-06)
Expand Down
10 changes: 5 additions & 5 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class User extends Authenticatable
'remember_token',
];

public function gravatar(): Attribute
{
return Attribute::make(fn () => $this->avatar());
}

/**
* Get the attributes that should be cast.
*
Expand All @@ -46,11 +51,6 @@ protected function casts(): array
];
}

public function gravatar(): Attribute
{
return Attribute::make(fn () => $this->avatar());
}

protected function avatar($size = 200): string
{
return 'https://www.gravatar.com/avatar/' . md5(strtolower(trim($this->email))) . '?s=' . $size . '&d=mp';
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "justd/laravel",
"version": "1.0.5",
"version": "1.0.6",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": [
Expand Down
69 changes: 35 additions & 34 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DatabaseSeeder extends Seeder
*/
public function run(): void
{
User::factory(10)->create();
User::factory(10)->create();

User::factory()->create([
'name' => 'Test User',
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"release": "release-it"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/cli": "^19.4.0",
"@commitlint/config-conventional": "^19.2.2",
"@inertiajs/react": "^1.2.0",
"@release-it/bumper": "^6.0.1",
Expand All @@ -29,14 +29,14 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"release-it": "^17.6.0",
"tailwindcss": "^3.4.7",
"tailwindcss": "^3.4.8",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vite": "^5.4.0",
"vite-plugin-watch": "^0.3.1"
},
"dependencies": {
"clsx": "^2.1.1",
"framer-motion": "^11.3.21",
"framer-motion": "^11.3.23",
"justd-icons": "^1.4.21",
"react-aria-components": "^1.3.1",
"sonner": "^1.5.0",
Expand Down Expand Up @@ -79,5 +79,5 @@
}
}
},
"version": "1.0.5"
"version": "1.0.6"
}
4 changes: 2 additions & 2 deletions resources/js/ziggy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Ziggy = {
url: 'http://inertia.test',
port: null,
url: 'http://localhost:8000',
port: 8000,
defaults: {},
routes: {
'sanctum.csrf-cookie': { uri: 'sanctum/csrf-cookie', methods: ['GET', 'HEAD'] },
Expand Down
Loading