Commit e4cb6b33 authored by gxx's avatar gxx

查看详情的链接

parent 6150569e
...@@ -33,7 +33,6 @@ class FileService implements FileServiceContract ...@@ -33,7 +33,6 @@ class FileService implements FileServiceContract
public function delete($file_id) public function delete($file_id)
{ {
// TODO: Implement delete() method.
$file =File::where(["id"=>file_id])->get(); $file =File::where(["id"=>file_id])->get();
$result = $file->delete(); $result = $file->delete();
return $result; return $result;
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
<td>{{$file->folder_id}}</td> <td>{{$file->folder_id}}</td>
<td>{{$file->fileInProject->name}}</td> <td>{{$file->fileInProject->name}}</td>
<td>{{$file->fileCreator->user_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> <a href="{{$file->id}}" class="btn bg-orange" > 删除</a>
</td> </td>
</tr> </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