SettingController Kodlarımız first(); return view('settings.index', compact('settings')); } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function store(Request $request) { $id = 1; $data = array(); $data['title'] = $request->title; $data['description'] = $request->description; $data['phone'] = $request->phone; $data['email'] = $request->email; $data['address'] = $request->address; DB::table('settings')->where('id',$id)->update($data); return Redirect()->back(); } } Settings Model Kodlarımız id(); $table->string('title')->nullable(); $table->string('description')->nullable(); $table->string('phone')->nullable(); $table->string('email')->nullable(); $table->string('address')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('settings'); } } routes/web.php kodlarımız name('store'); settings blade php kodlarımız {{ $settings->title }}

Site Setting Home


@csrf
HomeController Kodlarımız first(); return view('welcome', compact('settings')); } } welcome blade kodlarımız {{ $settings->title }}
@if (Route::has('login')) @endif
{{ $settings->title }}
{{ $settings->description }}
{{ $settings->phone }}
{{ $settings->email }}
{{ $settings->address }}
{{ $settings->title }}
{{ $settings->description }}
{{ $settings->phone }}
{{ $settings->email }}
{{ $settings->address }}
{{ $settings->title }}
{{ $settings->description }}
{{ $settings->phone }}
{{ $settings->email }}
{{ $settings->address }}
{{ $settings->title }}
{{ $settings->title }}
{{ $settings->description }}
{{ $settings->phone }}
{{ $settings->email }}
{{ $settings->address }}
Laravel v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }})