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

Upgrade to Laravel 11 #182

Merged
merged 5 commits into from
Jun 23, 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
42 changes: 32 additions & 10 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,40 @@ APP_NAME=LaraBlog
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_TIMEZONE=UTC
APP_URL=http://localhost

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database

BCRYPT_ROUNDS=12

LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_DATABASE=larablog
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=database
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database

TELESCOPE_ENABLED=true
CACHE_STORE=database
CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
Expand All @@ -32,9 +49,13 @@ MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

VITE_APP_NAME="${APP_NAME}"

GOOGLE_DRIVE_CLIENT_ID=
GOOGLE_DRIVE_CLIENT_SECRET=
Expand All @@ -45,3 +66,4 @@ GOOGLE_ANALYTICS_TRACKING_ID=

SENTRY_LARAVEL_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ A full-featured blogging system for personal use. No frontend theme and anything
* Can navigate articles based on categories.

### Installation Process
1. Execute `composer create-project alimranahmed/larablog` on your terminal to download this project.
1. Execute `git clone https://github.com/alimranahmed/LaraBlog.git` on your terminal to download this project.
2. Go to the project root directory and execute `composer install` to install all PHP dependencies of the project
3. Create a file named as .env and copy the content of .env.example to newly created .env file
4. Then execute `php artisan key:generate` on your terminal/cmd to generate environment key
Expand Down
51 changes: 0 additions & 51 deletions app/Console/Commands/BackupSiteData.php

This file was deleted.

2 changes: 1 addition & 1 deletion app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class GenerateSitemap extends Command

protected $description = 'Generate sitemap';

public function handle()
public function handle(): void
{
$paginatedArticles = Article::getPaginated();
$latestArticleAt = $paginatedArticles->first()->created_at ?? Carbon::now()->toDateString();
Expand Down
74 changes: 0 additions & 74 deletions app/Console/Commands/GetLocationByIP.php

This file was deleted.

29 changes: 2 additions & 27 deletions app/Console/Commands/Utility/SyncPermission.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,11 @@

class SyncPermission extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'utility:sync-permission';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
protected $description = 'Sync permission based on acl.php config file';

/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
public function handle(): void
{
$this->info('Syncing the roles and permission');
(new \RolesAndPermissionsTableSeeder())->run();
Expand Down
32 changes: 0 additions & 32 deletions app/Console/Kernel.php

This file was deleted.

40 changes: 0 additions & 40 deletions app/Events/ArticleHit.php

This file was deleted.

60 changes: 0 additions & 60 deletions app/Events/CommentOnArticle.php

This file was deleted.

Loading
Loading