Ich aktualisiere meine Erlaubnis Tabelle müssen roh über edit.blade.php Dateiwie kann ich meine Tabelle roh aktualisieren in Laravel 5.2
edit.blade.php
@extends('layouts.app')
@section('content')
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header"> Edit Project</h1>
@if($permission)
@include('layouts.partials.alerts')
<div class="col-lg-6">
<form class="form-vertical" role="form" method="post" action="">
<div class="form-group{{ $errors->has('status') ? ' has-error' : '' }}">
<label for="status" class="control-label">Choose Status</label>
<select name="status" id="status">
<option value="{!! $permission->status !!}">{!! $permission->status !!}</option>
{{ getStatus($permission->status) }}
</select>
</div>
</form>
</div>
@endif
</div>
@stop
mein Controller-Methode ist das
public function edit($id)
{
$permission = Permission::find($id);
return view('collaborators.edit')->withPermission($permission);
}
aber wenn ich auf Schaltfläche bearbeiten edit.blade.php es nur Anzeige ist
Edit Project
nicht in der Lage zu mu unten sehen Drop Status wählt mein Berechtigungsmodell
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Permission extends Model
{
protected $table = 'permissions';
protected $fillable = ['status','project_id','collaborator_id'];
public function scopeProject($query, $id)
{
return $query->where('project_id', $id);
}
public function project_collaborator()
{
return $this->belongsToMany('App\Collaboration','collaborator_id');
}
//
}
Wie kann ich dieses Problem beheben?
wo Tisch ist ?? – Borna
Was meinst du "wo ist dein Tisch?" – Fernando
Sie erwähnt „meine Tabelle aktualisieren raw“ – Borna