Stores a new feature.

@param  FeaturesRequest $request

@return void
510818
public function store(FeaturesRequest $request)
    {
        $feature = Feature::create($request->all());

        return redirect()->route('features.edit', $feature)->with('status', trans('globals.success_text'));
    }
309450
public function store(Request $request)
    {
        $response = $this->repository->create($request->all());
        return Response::apiResponse([
            'data' => $response
        ]);
    }
346469
public function store(Request $request)
    {
    	foreach (array_keys($_POST) as $key)
		{
			if (strpos($key, "user_check_") === 0)
			{
				$component = explode("_", $key);
				$user_id = $component[2];
				
				$user = User::find($user_id);
                if (isset($_POST["user_$user->id"]))
                {
    				$user->roles()->sync($_POST["user_$user->id"]);
                }
                else
                {
                    $user->roles()->sync([]);
                }
			}
		}
		return redirect(url("user_role"))->with('dp_announce', trans('deeppermission.alert.user_role.updated'));
    }
838893
public function store(Request $request)
	{
		$request = $this->getRequest();

		$this->getModel()->getRepository()->create($request->all());

		return $this->response()
			->success("L'élément a été créée avec succès.")
			->redirect($this->getEndpoint());
	}
1209047
public function store(Request $request)
    {
        $this->validate($request, ['thread_id' => ['required'], 'author_id' => ['required'], 'content' => ['required']]);

        $thread = Thread::find($request->input('thread_id'));
        $this->authorize('reply', $thread);

        $post = $this->model()->create($request->only(['thread_id', 'post_id', 'author_id', 'content']));
        $post->load('thread');

        return $this->response($post, $this->trans('created'), 201);
    }
797551
public function store(Request $request)
    {
        $attributes = request()->validate(Article::$rules, Article::$messages);

        $this->createEntry(Article::class, $attributes);

        return redirect_to_resource();
    }
972328
public function store(Request $request)
    {
        if (!$this->can('create-' . Str::plural($this->slug), auth()->user()->id)) {
            abort(404);
        }
        // $this->newRequest = $request->all();

        $this->validation($request);

        $request = $this->HandleRequest($request);

        $model = Laramin::model($this->type->name)->create($request->toArray());

        // $this->relationAfterSaving($request, $model, $this->getInfoOfType(), true);

        Session::flash($this->flashname, $this->SessionMessage("Your {$this->slug} Has Been Succesfully Added", 'success'));

        return redirect()->route('laramin.' . $this->slug . '.index');
    }
1322473
public function store(RolesRequest $request)
    {
        if ($this->role->createWithUsers($request->all(), $request->users)) {
            flash(trans('core::messages.resource.resource created', ['name' => trans('user::roles.title.role')]));
        }

        return redirect()->route('backend::user.role.index');
    }
1039735
public function store(CreatePostRequest $request)
    {
        $this->authorize(PostsPolicy::PERMISSION_CREATE);

        $post = Post::createOne($request->getValidatedData());

        $this->transNotification('created', ['title' => $post->title], $post->toArray());

        return redirect()->route('admin::blog.posts.show', [$post]);
    }
1035867
public function save(\Illuminate\Http\Request $request)
    {
        $name = $this->getName();
        $value = $request->input($name, '');

        if (! empty($value)) {
            $value = explode(',', $value);
        } else {
            $value = [];
        }

        $request->merge([$name => $value]);

        parent::save($request);
    }
368206
public function store(SubmitRequest $request)
    {
        $this->service->create($request->all());

        return $this->success();
    }
1213824
public function store(Request $request)
    {
        $this->validate($request, ['name' => 'required']);

        $role = Role::create($request->all());
        $role->permissions()->detach();

        if ($request->has('permissions')) {
            foreach ($request->permissions as $permission_name) {
                $permission = Permission::whereName($permission_name)->first();
                $role->givePermissionTo($permission);
            }
        }

        return redirect('admin/roles')->with('flash_message', 'Role added!');
    }
228527
public function store(AttributeRequest $request)
    {
        $attribute = Attribute::create($request->all());

        return (new AttributeResource($attribute));
    }
250286
public function store(CreateStorageRequest $request)
    {
        $this->storage->create($request->all());

        return redirect()->route('admin.product.storage.index')
            ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));
    }
562518
public function postFeature(Request $request, Page $page)
    {
        $this->authorize('editFeature', $page);

        $page->setFeatureImageId($request->input('feature_image_id'));

        PageFacade::save($page);
    }
332744
protected function storeToCanonical(FeatureInterface $feature)
    {
        $name = $feature->getName();
        $was  = $this->getFeature($name);
        $new  = $feature->resolve($was);

        $this->canonical[$name] = $new;

        if ($was !== $new) {
            $this->logger->debug('New canonical feature: {feature} from {provider}, {was} -> {new}', [
                'feature'  => $name,
                'provider' => $feature->getProvider()->getName(),
                'was'      => Status::$messages[$was->getStatus()],
                'new'      => Status::$messages[$this->canonical[$name]->getStatus()]
            ]);
        }
    }
785683
public function store(ProductsRequest $request)
	{
		$product = $this->products->create(
			$request->all()
		);

		return redirect()->route('items.edit', [
			'item' => $product->id
		])->with('status', trans('globals.success_text'));
	}