Commit e4cb6b33 authored by gxx's avatar gxx

查看详情的链接

parent 6150569e
......@@ -33,7 +33,6 @@ class FileService implements FileServiceContract
public function delete($file_id)
{
// TODO: Implement delete() method.
$file =File::where(["id"=>file_id])->get();
$result = $file->delete();
return $result;
......
......@@ -116,7 +116,7 @@
<td>{{$file->folder_id}}</td>
<td>{{$file->fileInProject->name}}</td>
<td>{{$file->fileCreator->user_name}}</td>
<td><a href="{{$file->id}}" class="btn btn-info" > 查看详情</a>
<td><a href="{{route('file.get',['id' => $file->id])}}" class="btn btn-info" > 查看详情</a>
<a href="{{$file->id}}" class="btn bg-orange" > 删除</a>
</td>
</tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment