public function create($page_id = null)
    {
        // If pageid is passed, the first key (pagekey) is prefilled
        $page = $page_id ? Page::find($page_id) : null;
        $line = new Line();
        $available_locales = config('squanto.locales');

        return view('squanto::create', compact('page', 'line', 'available_locales'));
    }
public function create($page_id = null)
    {
        // If pageid is passed, the first key (pagekey) is prefilled
        $page = $page_id ? Page::find($page_id) : null;
        $line = new Line();
        $available_locales = config('squanto.locales');

        return view('squanto::create', compact('page', 'line', 'available_locales'));
    }
public function create ( $ page_id = null ) { // If pageid is passed, the first key (pagekey) is prefilled $ page = $ page_id ? Page :: find ( $ page_id ) : null ; $ line = new Line ( ) ; $ available_locales = config ( 'squanto.locales' ) ; return view ( 'squanto::create' , compact ( 'page' , 'line' , 'available_locales' ) ) ; }
Create new line

@param null $page_id
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Create new line