Skip to content
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
composer.lock
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"authors": [
{
"name": "Moamen Eltouny (Raggi)",
"email": "raggi@raggitech.com"
"email": "raggigroup@gmail.com"
}
],
"require": {
"php": ">=7.2",
"laravel/framework": ">=6.0",
"pharaonic/laravel-uploader": ">=1.0",
"pharaonic/laravel-helpers": ">=1.0"
"php": ">=8.0",
"laravel/framework": ">=10.0",
"pharaonic/laravel-uploader": "^4.0",
"pharaonic/laravel-assistant": "^1.0"
},
"autoload": {
"psr-4": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateFilesTable extends Migration
return new class extends Migration
{
/**
* Run the migrations.
Expand Down Expand Up @@ -37,4 +37,4 @@ public function down()
{
Schema::dropIfExists('files');
}
}
};
59 changes: 0 additions & 59 deletions src/File.php

This file was deleted.

16 changes: 7 additions & 9 deletions src/FilesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
namespace Pharaonic\Laravel\Files;

use Illuminate\Support\ServiceProvider;
use Pharaonic\Laravel\Files\Models\File;
use Pharaonic\Laravel\Files\Observers\FileObserver;

class FilesServiceProvider extends ServiceProvider
{

/**
* Register services.
*
* @return void
*/
public function register()
{
// Config Merge
$this->mergeConfigFrom(__DIR__ . '/config/files.php', 'laravel-has-files');

// Migration Loading
$this->loadMigrationsFrom(__DIR__ . '/database/migrations');
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
}

/**
Expand All @@ -28,11 +25,12 @@ public function register()
*/
public function boot()
{
// Observers
File::observe(FileObserver::class);

// Publishes
$this->publishes([
__DIR__ . '/config/files.php' => config_path('Pharaonic/files.php'),
__DIR__ . '/database/migrations/2021_02_01_000003_create_files_table.php' => database_path('migrations/2021_02_01_000003_create_files_table.php'),
__DIR__ . '/../database/migrations' => database_path('migrations'),
], ['pharaonic', 'laravel-has-files']);

}
}
171 changes: 0 additions & 171 deletions src/HasFiles.php

This file was deleted.

Loading