diff --git a/composer.json b/composer.json index c1536cf..07f11fd 100644 --- a/composer.json +++ b/composer.json @@ -2,10 +2,10 @@ "name": "goodoneuz/pay-uz", "description": "Payment: Click, Payme, Uzcard, Visa", "keywords": [ - "goodoneuz", + "blaze", "pay-uz" ], - "homepage": "https://github.com/goodoneuz/pay-uz", + "homepage": "https://github.com/shaxzodbek-uzb/pay-uz", "license": "MIT", "type": "library", "authors": [ diff --git a/src/Http/Controllers/ProjectController.php b/src/Http/Controllers/PaymentProjectController.php similarity index 91% rename from src/Http/Controllers/ProjectController.php rename to src/Http/Controllers/PaymentProjectController.php index a645df8..0c1caf2 100644 --- a/src/Http/Controllers/ProjectController.php +++ b/src/Http/Controllers/PaymentProjectController.php @@ -3,10 +3,10 @@ namespace Goodoneuz\PayUz\Http\Controllers; use Illuminate\Http\Request; -use Goodoneuz\PayUz\Models\Project; +use Goodoneuz\PayUz\Models\PaymentProject; use App\Http\Controllers\Controller; -class ProjectController extends Controller +class PaymentProjectController extends Controller { /** @@ -16,7 +16,7 @@ class ProjectController extends Controller */ public function index() { - $projects = Project::latest()->get(); + $projects = PaymentProject::latest()->get(); return view('pay-uz::projects.index',compact('projects')); } diff --git a/src/Models/Project.php b/src/Models/PaymentProject.php similarity index 88% rename from src/Models/Project.php rename to src/Models/PaymentProject.php index ac518b4..a81db3f 100644 --- a/src/Models/Project.php +++ b/src/Models/PaymentProject.php @@ -5,7 +5,7 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; -class Project extends Model +class PaymentProject extends Model { use SoftDeletes; diff --git a/src/database/migrations/2020_03_17_105343_create_projects_table.php b/src/database/migrations/2020_03_17_105343_create_payment_projects_table.php similarity index 77% rename from src/database/migrations/2020_03_17_105343_create_projects_table.php rename to src/database/migrations/2020_03_17_105343_create_payment_projects_table.php index 5e0ebf9..dbb400a 100644 --- a/src/database/migrations/2020_03_17_105343_create_projects_table.php +++ b/src/database/migrations/2020_03_17_105343_create_payment_projects_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; -class CreateProjectsTable extends Migration +class CreatePaymentProjectsTable extends Migration { /** * Run the migrations. @@ -13,7 +13,7 @@ class CreateProjectsTable extends Migration */ public function up() { - Schema::create('projects', function (Blueprint $table) { + Schema::create('payment_projects', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->integer('status'); @@ -30,6 +30,6 @@ public function up() */ public function down() { - Schema::dropIfExists('projects'); + Schema::dropIfExists('payment_projects'); } } diff --git a/src/resources/views/components/main_nav.blade.php b/src/resources/views/components/main_nav.blade.php index 50cad82..c2b920f 100644 --- a/src/resources/views/components/main_nav.blade.php +++ b/src/resources/views/components/main_nav.blade.php @@ -10,21 +10,14 @@ - - -