<?php
/**
 * Created by PhpStorm.
 * User: studio-book
 * Date: 12/6/16
 * Time: 6:36 PM
 */

namespace ShawnSandy\Summernote\App\Controllers;


use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use ShawnSandy\Summernote\App\Models\Snotes;
use ShawnSandy\Summernote\App\Notes\StoreNotesRequest;

class NotesController extends Controller
{

    public function index()
    {
        $notes = Snotes::with('user')->get();
        return view('notes::index', compact('notes'));
    }

    public function show($id)
    {

    }

    public function create()
    {
        $images = [];
        return view('notes::create', compact('images'));
    }

    public function  store(StoreNotesRequest $request){
        return $request->all();
    }


    public function edit($id){

    }

    public function update(Request $request, $id)  {

    }

    public function destroy($id){

    }

}

<?php
/**
 * Created by PhpStorm.
 * User: studio-book
 * Date: 12/6/16
 * Time: 6:36 PM
 */

namespace ShawnSandy\Summernote\App\Controllers;


use App\User;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Auth;
use ShawnSandy\Summernote\App\Models\Snotes;
use ShawnSandy\Summernote\App\Notes\StoreNotesRequest;

class NotesController extends Controller
{

    public function index()
    {
        $notes = Snotes::with('user')->get();
        return view('notes::index', compact('notes'));
    }

    public function show($id)
    {

    }

    public function create()
    {
        $images = [];
        return view('notes::create', compact('images'));
    }

    public function  store(StoreNotesRequest $request){
        $id = Auth::id();
        $user = User::find($id);
//        $notes = $user->notes()->create($request->all());
        $notes = $request->user()->snotes()->create($request->all());
        return $notes;
    }


    public function edit($id){

    }

    public function update(Request $request, $id)  {

    }

    public function destroy($id){

    }

}

Update store method to save/create notes
Update store method to save/create notes
