Skip to content

Commit

Permalink
Update & Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
YasserElgammal committed Oct 22, 2024
1 parent 7af0dc9 commit 2bfd9d0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ GET | api/posts/{id} | Show Specific Post
6. Run migrations by executing `php artisan migrate` , Then Run `php artisan db:seed` if you want use faker database records,
7. Start the project by running `php artisan serve`

### Demo Account
- AdminURL: http://127.0.0.1:8000/admin
- Email: [email protected]
- Password: password

## About Me

Iam a Junior Backend Developer with one year of experience, I specialize in PHP, Laravel, and front-end technologies like TailwindCSS and Livewire. I have expertise in developing REST APIs and working with MySQL databases, and I am familiar with software architecture patterns such as MVC and HMVC. I am committed to producing clean, well-documented code that is easily maintainable, and I enjoy sharing my knowledge through various channels. I am eager to take on new challenges and continue to develop my skills.
Iam a Backend Developer with 2+ year of experience, I specialize in PHP, Laravel, and front-end technologies like TailwindCSS and Livewire. I have expertise in developing REST APIs and working with MySQL databases, and I am familiar with software architecture patterns such as MVC and HMVC. I am committed to producing clean, well-documented code that is easily maintainable, and I enjoy sharing my knowledge through various channels. I am eager to take on new challenges and continue to develop my skills.

- [LinkedIn](https://www.linkedin.com/in/elgammal/).
- [Youtube](https://www.youtube.com/@yasser.elgammal).
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function boot()
parent::boot();
static::updating(function ($post) {
if ($post->isDirty('image') && !is_null($post->getRawOriginal('image'))) {
Storage::delete($post->getRawOriginal('image'));
Storage::delete($post->getRawOriginal('image'));
}
});
static::deleting(function ($post) {
Expand Down
7 changes: 6 additions & 1 deletion database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ class DatabaseSeeder extends Seeder
public function run()
{
\App\Models\Setting::factory(1)->create();
\App\Models\User::factory(20)->create();
\App\Models\User::factory()->create([
'name' => 'Admin',
'email' => '[email protected]',
'role_id' => 1,
]);
\App\Models\User::factory(19)->create();
\App\Models\Category::factory(5)->create();
\App\Models\Post::factory(50)->create();
\App\Models\Page::factory(10)->create();
Expand Down

0 comments on commit 2bfd9d0

Please sign in to comment.