Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Language/database/seeders/68334/OurTeam.tar
Назад
lang/.gitkeep 0000644 00000000000 15012232601 0007074 0 ustar 00 module.json 0000644 00000000336 15012232601 0006716 0 ustar 00 { "name": "OurTeam", "alias": "ourteam", "description": "", "keywords": [], "priority": 0, "providers": [ "Modules\\OurTeam\\app\\Providers\\OurTeamServiceProvider" ], "files": [] } tests/Unit/.gitkeep 0000644 00000000000 15012232601 0010234 0 ustar 00 tests/Feature/.gitkeep 0000644 00000000000 15012232601 0010710 0 ustar 00 vite.config.js 0000644 00000001304 15012232601 0007303 0 ustar 00 import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; export default defineConfig({ build: { outDir: '../../public/build-ourteam', emptyOutDir: true, manifest: true, }, plugins: [ laravel({ publicDirectory: '../../public', buildDirectory: 'build-ourteam', input: [ __dirname + '/resources/assets/sass/app.scss', __dirname + '/resources/assets/js/app.js' ], refresh: true, }), ], }); //export const paths = [ // 'Modules/$STUDLY_NAME$/resources/assets/sass/app.scss', // 'Modules/$STUDLY_NAME$/resources/assets/js/app.js', //]; wsus.json 0000644 00000000623 15012232601 0006431 0 ustar 00 { "name": "Our Team Addon", "is_default": true, "description": "This is Our Team Addon", "author": { "name": "Websolutionsus", "email": "websolutionus1@gmail.com", "website": "https://websolutionus.com" }, "license": "Proprietary", "url": "", "options" : { "route" : "home" }, "last_update": "2024-03-31", "version": "1.0.0" } routes/.gitkeep 0000644 00000000000 15012232601 0007474 0 ustar 00 routes/error_log 0000644 00000001102 15012232601 0007764 0 ustar 00 [07-May-2025 14:18:08 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route" not found in /home/lekhnath/silverray.com.au/Modules/OurTeam/routes/api.php:5 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/OurTeam/routes/api.php on line 5 [07-May-2025 15:31:23 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route" not found in /home/lekhnath/silverray.com.au/Modules/OurTeam/routes/web.php:17 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/OurTeam/routes/web.php on line 17 routes/web.php 0000644 00000001255 15012232601 0007346 0 ustar 00 <?php use Illuminate\Support\Facades\Route; use Modules\OurTeam\app\Http\Controllers\OurTeamController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ Route::group(['as' => 'admin.', 'prefix' => 'admin', 'middleware' => ['auth:admin', 'translation']], function () { Route::resource('ourteam', OurTeamController::class)->names('ourteam'); }); routes/api.php 0000644 00000000214 15012232601 0007334 0 ustar 00 <?php use Illuminate\Support\Facades\Route; Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () { }); composer.json 0000644 00000001275 15012232601 0007263 0 ustar 00 { "name": "nwidart/ourteam", "description": "", "authors": [ { "name": "Nicolas Widart", "email": "n.widart@gmail.com" } ], "extra": { "laravel": { "providers": [], "aliases": { } } }, "autoload": { "psr-4": { "Modules\\OurTeam\\": "", "Modules\\OurTeam\\App\\": "app/", "Modules\\OurTeam\\Database\\Factories\\": "database/factories/", "Modules\\OurTeam\\Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Modules\\OurTeam\\Tests\\": "tests/" } } } config/config.php 0000644 00000000054 15012232601 0007756 0 ustar 00 <?php return [ 'name' => 'OurTeam', ]; config/.gitkeep 0000644 00000000000 15012232601 0007420 0 ustar 00 package.json 0000644 00000000410 15012232601 0007015 0 ustar 00 { "private": true, "type": "module", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "axios": "^1.1.2", "laravel-vite-plugin": "^0.7.5", "sass": "^1.69.5", "postcss": "^8.3.7", "vite": "^4.0.0" } } app/Http/Controllers/OurTeamController.php 0000644 00000007605 15012232601 0014702 0 ustar 00 <?php namespace Modules\OurTeam\app\Http\Controllers; use App\Http\Controllers\Controller; use File; use Illuminate\Http\Request; use Modules\OurTeam\app\Models\OurTeam; class OurTeamController extends Controller { public function index() { checkAdminHasPermissionAndThrowException('team.view'); $teams = OurTeam::all(); return view('ourteam::index', compact('teams')); } public function create() { checkAdminHasPermissionAndThrowException('team.create'); return view('ourteam::create'); } public function store(Request $request) { checkAdminHasPermissionAndThrowException('team.store'); $rules = [ 'name' => 'required', 'designation' => 'required', 'image' => 'required', 'status' => 'required', ]; $customMessages = [ 'name.required' => __('Name is required'), 'designation.required' => __('Designation is required'), 'image.required' => __('Image is required'), ]; $this->validate($request, $rules, $customMessages); $team = new OurTeam(); $file_name = ''; if ($request->file('image')) { $file_name = file_upload($request->image); } $team->name = $request->name; $team->designation = $request->designation; $team->image = $file_name; $team->status = $request->status; $team->facebook = $request->facebook; $team->twitter = $request->twitter; $team->linkedin = $request->linkedin; $team->instagram = $request->instagram; $team->save(); $notification = __('Created Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.ourteam.index')->with($notification); } public function edit($id) { checkAdminHasPermissionAndThrowException('team.edit'); $team = OurTeam::find($id); return view('ourteam::edit', compact('team')); } public function update(Request $request, $id) { checkAdminHasPermissionAndThrowException('team.update'); $rules = [ 'name' => 'required', 'designation' => 'required', 'status' => 'required', ]; $customMessages = [ 'name.required' => __('Name is required'), 'designation.required' => __('Designation is required'), ]; $this->validate($request, $rules, $customMessages); $team = OurTeam::find($id); $team->name = $request->name; $team->designation = $request->designation; $team->status = $request->status; $team->facebook = $request->facebook; $team->twitter = $request->twitter; $team->linkedin = $request->linkedin; $team->instagram = $request->instagram; $team->save(); if ($request->file('image')) { $file_name = file_upload($request->image, 'uploads/custom-images/', $team->image); $team->image = $file_name; $team->save(); } $notification = __('Update Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.ourteam.index')->with($notification); } public function destroy($id) { checkAdminHasPermissionAndThrowException('team.delete'); $team = OurTeam::find($id); $existing_image = $team->image; $team->delete(); if ($existing_image) { if (File::exists(public_path($existing_image))) { unlink(public_path($existing_image)); } } $notification = __('Delete Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.ourteam.index')->with($notification); } } app/Http/Controllers/.gitkeep 0000644 00000000000 15012232601 0012160 0 ustar 00 app/Http/Requests/.gitkeep 0000644 00000000000 15012232601 0011465 0 ustar 00 app/Http/Middleware/.gitkeep 0000644 00000000000 15012232601 0011727 0 ustar 00 app/Models/.gitkeep 0000644 00000000000 15012232601 0010156 0 ustar 00 app/Models/error_log 0000644 00000000462 15012232601 0010456 0 ustar 00 [08-May-2025 06:11:29 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Eloquent\Model" not found in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Models/OurTeam.php:9 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Models/OurTeam.php on line 9 app/Models/OurTeam.php 0000644 00000000710 15012232601 0010622 0 ustar 00 <?php namespace Modules\OurTeam\app\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Modules\OurTeam\Database\factories\OurTeamFactory; class OurTeam extends Model { use HasFactory; /** * The attributes that are mass assignable. */ protected $fillable = []; protected static function newFactory(): OurTeamFactory { //return OurTeamFactory::new(); } } app/Providers/RouteServiceProvider.php 0000644 00000002663 15012232601 0014143 0 ustar 00 <?php namespace Modules\OurTeam\app\Providers; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { /** * The module namespace to assume when generating URLs to actions. */ protected string $moduleNamespace = 'Modules\OurTeam\app\Http\Controllers'; /** * Called before routes are registered. * * Register any model bindings or pattern based filters. */ public function boot(): void { parent::boot(); } /** * Define the routes for the application. */ public function map(): void { $this->mapApiRoutes(); $this->mapWebRoutes(); } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. */ protected function mapWebRoutes(): void { Route::middleware('web') ->namespace($this->moduleNamespace) ->group(module_path('OurTeam', '/routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. */ protected function mapApiRoutes(): void { Route::prefix('api') ->middleware('api') ->namespace($this->moduleNamespace) ->group(module_path('OurTeam', '/routes/api.php')); } } app/Providers/.gitkeep 0000644 00000000000 15012232601 0010710 0 ustar 00 app/Providers/error_log 0000644 00000001302 15012232601 0011202 0 ustar 00 [11-May-2025 20:09:21 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Support\Providers\RouteServiceProvider" not found in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Providers/RouteServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Providers/RouteServiceProvider.php on line 8 [11-May-2025 20:56:11 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\ServiceProvider" not found in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Providers/OurTeamServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/OurTeam/app/Providers/OurTeamServiceProvider.php on line 8 app/Providers/OurTeamServiceProvider.php 0000644 00000006442 15012232601 0014420 0 ustar 00 <?php namespace Modules\OurTeam\app\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class OurTeamServiceProvider extends ServiceProvider { protected string $moduleName = 'OurTeam'; protected string $moduleNameLower = 'ourteam'; /** * Boot the application events. */ public function boot(): void { $this->registerCommands(); $this->registerCommandSchedules(); $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); } /** * Register the service provider. */ public function register(): void { $this->app->register(RouteServiceProvider::class); } /** * Register commands in the format of Command::class */ protected function registerCommands(): void { // $this->commands([]); } /** * Register command Schedules. */ protected function registerCommandSchedules(): void { // $this->app->booted(function () { // $schedule = $this->app->make(Schedule::class); // $schedule->command('inspire')->hourly(); // }); } /** * Register translations. */ public function registerTranslations(): void { $langPath = resource_path('lang/modules/'.$this->moduleNameLower); if (is_dir($langPath)) { $this->loadTranslationsFrom($langPath, $this->moduleNameLower); $this->loadJsonTranslationsFrom($langPath); } else { $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); } } /** * Register config. */ protected function registerConfig(): void { $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); } /** * Register views. */ public function registerViews(): void { $viewPath = resource_path('views/modules/'.$this->moduleNameLower); $sourcePath = module_path($this->moduleName, 'resources/views'); $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.config('modules.paths.generator.component-class.path')); Blade::componentNamespace($componentNamespace, $this->moduleNameLower); } /** * Get the services provided by the provider. */ public function provides(): array { return []; } private function getPublishableViewPaths(): array { $paths = []; foreach (config('view.paths') as $path) { if (is_dir($path.'/modules/'.$this->moduleNameLower)) { $paths[] = $path.'/modules/'.$this->moduleNameLower; } } return $paths; } } database/factories/.gitkeep 0000644 00000000000 15012232601 0011676 0 ustar 00 database/migrations/.gitkeep 0000644 00000000000 15012232601 0012073 0 ustar 00 database/migrations/2023_12_05_090256_create_our_teams_table.php 0000644 00000001656 15012232601 0017766 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('our_teams', function (Blueprint $table) { $table->id(); $table->string('name'); $table->string('designation'); $table->string('image')->nullable(); $table->text('facebook')->nullable(); $table->text('twitter')->nullable(); $table->text('linkedin')->nullable(); $table->text('instagram')->nullable(); $table->enum('status', ['active', 'inactive'])->default('active'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('our_teams'); } }; database/seeders/.gitkeep 0000644 00000000000 15012232601 0011351 0 ustar 00 database/seeders/OurTeamDatabaseSeeder.php 0000644 00000000373 15012232601 0014577 0 ustar 00 <?php namespace Modules\OurTeam\database\seeders; use Illuminate\Database\Seeder; class OurTeamDatabaseSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { // $this->call([]); } } resources/assets/.gitkeep 0000644 00000000000 15012232601 0011467 0 ustar 00 resources/assets/js/app.js 0000644 00000000000 15012232601 0011570 0 ustar 00 resources/assets/sass/app.scss 0000644 00000000000 15012232601 0012464 0 ustar 00 resources/views/sidebar.blade.php 0000644 00000000264 15012232601 0013075 0 ustar 00 <li class="{{ isRoute('admin.ourteam.*', 'active') }}"> <a class="nav-link" href="{{ route('admin.ourteam.index') }}"> <span>{{ __('Our Team') }}</span> </a> </li> resources/views/edit.blade.php 0000644 00000013031 15012232601 0012405 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Edit Team') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Edit Team') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Our Team') => route('admin.ourteam.index'), __('Edit Team') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Edit Team')" /> <div> <x-admin.back-button :href="route('admin.ourteam.index')" /> </div> </div> <div class="card-body"> <form action="{{ route('admin.ourteam.update', $team->id) }}" method="POST" enctype="multipart/form-data"> @csrf @method('PUT') <div class="row"> <div class="form-group col-md-6"> <x-admin.form-image-preview label="Avatar Image" :image="$team->image" /> </div> <div class="form-group col-12"> <x-admin.form-input id="name" name="name" label="{{ __('Name') }}" placeholder="{{ __('Enter Name') }}" value="{{ $team->name }}" required="true" /> </div> <div class="form-group col-12"> <x-admin.form-input id="designation" name="designation" label="{{ __('Designation') }}" placeholder="{{ __('Enter Designation') }}" value="{{ $team->designation }}" required="true" /> </div> <div class="form-group col-12"> <x-admin.form-input id="facebook" name="facebook" label="{{ __('Facebook') }}" placeholder="{{ __('Enter Facebook Link') }}" value="{{ $team->facebook }}" /> </div> <div class="form-group col-12"> <x-admin.form-input id="twitter" name="twitter" label="{{ __('Twitter') }}" placeholder="{{ __('Enter Twitter Link') }}" value="{{ $team->twitter }}" /> </div> <div class="form-group col-12"> <x-admin.form-input id="linkedin" name="linkedin" label="{{ __('Linkedin') }}" placeholder="{{ __('Enter Linkedin Link') }}" value="{{ $team->linkedin }}" /> </div> <div class="form-group col-12"> <x-admin.form-input id="instagram" name="instagram" label="{{ __('Instagram') }}" placeholder="{{ __('Enter Instagram Link') }}" value="{{ $team->instagram }}" /> </div> <div class="form-group col-12"> <x-admin.form-switch name="status" label="{{ __('Status') }}" active_value="active" inactive_value="inactive" :checked="$team->status == 'active'" /> </div> </div> <div class="row"> @adminCan('team.update') <div class="col-12"> <x-admin.update-button :text="__('Update')" /> </div> @endadminCan </div> </form> </div> </div> </div> </div> </section> </div> @endsection @push('js') <script src="{{ asset('backend/js/jquery.uploadPreview.min.js') }}"></script> <script> $.uploadPreview({ input_field: "#image-upload", preview_box: "#image-preview", label_field: "#image-label", label_default: "{{ __('Choose Image') }}", label_selected: "{{ __('Change Image') }}", no_label: false, success_callback: null }); </script> @endpush resources/views/.gitkeep 0000644 00000000000 15012232601 0011322 0 ustar 00 resources/views/create.blade.php 0000644 00000011464 15012232601 0012733 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Create Team') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Create Team') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Our Team') => route('admin.ourteam.index'), __('Create Team') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Create Team')" /> <div> <x-admin.back-button :href="route('admin.ourteam.index')" /> </div> </div> <div class="card-body"> <form action="{{ route('admin.ourteam.store') }}" method="POST" enctype="multipart/form-data"> @csrf <div class="row"> <div class="form-group col-md-6"> <x-admin.form-image-preview label="Avatar Image" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="name" name="name" label="{{ __('Name') }}" placeholder="{{ __('Enter Name') }}" value="{{ old('name') }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="designation" name="designation" label="{{ __('Designation') }}" placeholder="{{ __('Enter Designation') }}" value="{{ old('designation') }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="facebook" name="facebook" label="{{ __('Facebook') }}" placeholder="{{ __('Enter Facebook Link') }}" value="{{ old('facebook') }}"/> </div> <div class="form-group col-12"> <x-admin.form-input id="twitter" name="twitter" label="{{ __('Twitter') }}" placeholder="{{ __('Enter Twitter Link') }}" value="{{ old('twitter') }}"/> </div> <div class="form-group col-12"> <x-admin.form-input id="linkedin" name="linkedin" label="{{ __('Linkedin') }}" placeholder="{{ __('Enter Linkedin Link') }}" value="{{ old('linkedin') }}"/> </div> <div class="form-group col-12"> <x-admin.form-input id="instagram" name="instagram" label="{{ __('Instagram') }}" placeholder="{{ __('Enter Instagram Link') }}" value="{{ old('instagram') }}"/> </div> <div class="form-group col-12"> <x-admin.form-switch name="status" label="{{ __('Status') }}" active_value="active" inactive_value="inactive" :checked="old('status') == 'active'"/> </div> </div> <div class="row"> @adminCan('team.store') <div class="col-12"> <x-admin.save-button :text="__('Save')" /> </div> @endadminCan </div> </form> </div> </div> </div> </div> </section> </div> @endsection @push('js') <script src="{{ asset('backend/js/jquery.uploadPreview.min.js') }}"></script> <script> $.uploadPreview({ input_field: "#image-upload", preview_box: "#image-preview", label_field: "#image-label", label_default: "{{ __('Choose Image') }}", label_selected: "{{ __('Change Image') }}", no_label: false, success_callback: null }); </script> @endpush resources/views/index.blade.php 0000644 00000010536 15012232601 0012576 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Our Team') }}</title> @endsection @section('admin-content') <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Our Team') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Our Team') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> <div class="col"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Our Team')" /> @adminCan('team.create') <div> <x-admin.add-button :href="route('admin.ourteam.create')" /> </div> @endadminCan </div> <div class="card-body"> <div class="table-responsive table-invoice"> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('Name') }}</th> <th>{{ __('Designation') }}</th> <th>{{ __('Status') }}</th> <th>{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($teams as $index => $team) <tr> <td>{{ ++$index }}</td> <td>{{ $team->name }}</td> <td>{{ $team->designation }}</td> <td> @if ($team->status == 'active') <span class="badge bg-success">{{ __('Active') }}</span> @else <span class="badge bg-danger">{{ __('Inactive') }}</span> @endif </td> <td> @adminCan('team.edit') <x-admin.edit-button :href="route('admin.ourteam.edit', $team->id)" /> @endadminCan @adminCan('team.delete') <x-admin.delete-button :id="$team->id" onclick="deleteData" /> @endadminCan </td> </tr> @empty @adminCan('team.create') <x-empty-table :name="__('Team')" route="admin.ourteam.create" create="yes" :message="__('No data found!')" colspan="5"/> @endadminCan @endforelse </tbody> </table> </div> </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> <script> "use strict"; function deleteData(id) { $("#deleteForm").attr("action", '{{ url('admin/ourteam/') }}' + "/" + id) } </script> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка