Skip to content

Commit

Permalink
Lots of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbeit authored and Arbeit committed Feb 10, 2018
1 parent 2874806 commit 0ec46d7
Show file tree
Hide file tree
Showing 38 changed files with 22,187 additions and 3,843 deletions.
Binary file modified .DS_Store
Binary file not shown.
5 changes: 2 additions & 3 deletions src/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ public function store(Request $request)
return response()->backend($post);
}

public function update(Request $request, $post)
public function update(Request $request, Post $post)
{
$values = $request->only(['title', 'slug', 'subtitle', 'thumbnail', 'description', 'keywords', 'bundles', 'timestamp', 'people']);
$post = Post::find($post);
$values = $request->only(['content','title', 'slug', 'subtitle', 'thumbnail', 'description', 'keywords', 'bundles', 'timestamp', 'people']);
$post->revise($values);

$post->save();
Expand Down
5 changes: 0 additions & 5 deletions src/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
use LILPLP\IBA\Role;
use LILPLP\IBA\Keyword as Keyword;

use Illuminate\Notifications\Notifiable;



class Post extends Book
{
use Notifiable;
public static $dimensions = ['title', 'slug', 'thumbnail', 'timestamp'];
public static $groupings = ['keywords', 'people', 'bundles'];
public static $storageName = "posts";
Expand Down
1 change: 1 addition & 0 deletions src/config/iba-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
return [
'host' => env('APP_URL', 'http://localhost'),
'title' => 'My Blog',
'description' => '',
'digital' => [
'uri' => '/blog',
],
Expand Down
Loading

0 comments on commit 0ec46d7

Please sign in to comment.