App\Http\Controllers\Laralum\DocumentsController::showCreate PHP Method

showCreate() public method

public showCreate ( $file )
    public function showCreate($file)
    {
        Laralum::permissionToAccess('laralum.files.access');
        # Check permissions
        Laralum::permissionToAccess('laralum.documents.create');
        Laralum::mustBeFile($file);
        if (Laralum::isDocument($file)) {
            abort(404);
        }
        # Get all the data
        $data_index = 'documents';
        require 'Data/Create/Get.php';
        # Return the view
        return view('laralum/documents/create', ['file' => $file, 'fields' => $fields, 'confirmed' => $confirmed, 'encrypted' => $encrypted, 'hashed' => $hashed, 'masked' => $masked, 'table' => $table, 'code' => $code, 'wysiwyg' => $wysiwyg, 'relations' => $relations]);
    }