#### Category : store

I am not very proficient in programming so I would ask for your help. I want to connect the user and tasks table to in my database and assign tasks to different users. Tasks are uploaded successfully but my user_task table is empty after i upload a task. I would like to use many to ..

I want a system where I connect users with tasks and later I can assign tasks to different users from the amdin panel. My program doesn’t work, it doesn’t assign tasks to users. Later, I want to make sure that when a user logs in, they can only see their own tasks that an amdin ..

I am a new bee at Laravel application development. I make a form that inputs array data. and as usual, it’s working. where product_id and showroom_id will be matched it will increment the product unit. But the prob is when the array data has assumed 3 arrays where two arrays will be matched one will ..

I am a newbie at Laravel application development. I make a form that inputs array data. and as usual, it’s working. where product_id and showroom_id will be matched it will increment the product unit. But the prob is when the array data has assumed 3 arrays where two arrays will match one will be not ..

i have following array in dd($request->all()) "question_id" => array:2 [▼ 0 => "1" 1 => "2" ] "answers" => array:2 [▼ 0 => "1 year" 1 => "yes" ] i need to loop this array to store in this table which is this request came from dynamic form i create. i have tried this method .. Read more I am using Laravel 8, VueJS and Axios for my application then every time I try to fetch all records from my database it returns an error with status code 500. Even though when fetching the data using Postman/Insomnia it returns the data without an error. I tried to empty the table where it fetches .. Read more I am trying to store data for my form but i keep getting AppHttpControllersKeyresultController::store(): Argument #2 ($objective) must be of type AppModelsObjective, string given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php on line 54 here is my store function inside KeyresultController.php public function store(Request $request, Objective$objective) { // $objective = Objective::where(‘id’,$objective->id)->first(); $request->validate([ ‘keyresult_name’ => ‘required’, ]); keyresult::create([ ‘keyresult_name’ .. Read more I’m new to the Laravel framework. I want to insert classrooms data i.e.: ……………. ……………. quota This is the classrooms table: However, when I click "submit", the data from the quota column is not added with the result = 0 while the others are inserted. This is the result of inserting the data: Also, the .. Read more So I am having problems storing my picture of the user in the specified directory. The image is already in the database but when I call the data it does not show anything. How do I store it in the public folder and the database here is my lines of code: RegisterController.php <?php namespace AppHttpControllers; .. Read more So hear me out. If I place an order, I would like to store the order and the actual order details. One table to store the orderID, productID, order_status and is_delivered whereas the other table contains of the delivery address, price and quantity. I have setup the relations and everything, but one thing that I .. Read more I am trying to set up a basic way for users to create a meal plan for a week. I’ve attempted to do this a few ways but as it’s my first project i’m seriously stuck atm. So below i’ll show the steps that I have taken and explain my thoughts as I go. create_meal_plans_table.php .. Read more i’m new to laravel I have a form with dynamic fields but when I create more than one dynamic field and click submit this error appears: Undefined offset: 1 but it’s working with only one field. i saw who someone who used isset but i don’t know how to use it in my case Can .. Read more I’m trying to do a system that can make request of orders from different Shopify Stores (differents clients). Each user of the system will have associated a Shopify Store. And I need to make a request to the store associated to bring data of the orders and products that have in his store. Reading the .. Read more when i’ve got somes problemes for the file_path validation: so i decided to make the validation by myself (it’s not the best and i wich i could fix it) now, when i want to store the file, i’ve got an error: Call to a member function storeAs() on string i dont understand this error because .. Read more i have a pivot table that i want to record some data along with user on form submit. but im getting an error illegal offset type.$user has a value. same value if i add manually it works. my controller public function store(User $user) { //dd(Request()->all());$data = request()->validate([ ‘title’ => ‘required’, ‘link’ => ‘required’, ..

I have this code in laravel to store an image but why does the image name change when I checked it on the folder ?! Please help me I’m really frustrated ! public function postStore(Request $req){//Bikin toko baru$req->image->store(‘images’,’public’); $req->validate([ ‘name’=>[‘string’,’min:5′], ‘address’=>[‘string’,’min:10′], ‘description’=>[‘string’,’min:20′] // ‘image’=>’mimes:jpg,png,jpeg’ ]); Sourc.. Read more i’m trying to pass data(title,description and resized image) to my database this is the store function, for now it saves my images in that path but it doesn’t save them in the database the store function can work if i remove the resize image. public function store(Request$request) { $request->validate([ ‘title’ => ‘required’, ‘image’ => .. Read more Hi I’m saving information from blade. The form goes to store function. After saving data I have to send push info using GCM. But this function can not return to view. How can solve this? public function store(Request$request) { $request->validate([ ‘title_uz’ => ‘required’, ‘desc_uz’ => ‘required’, ‘url_uz’ => ‘required’, ‘company_id’ => ‘required’, ]); News::create($request->all()); ..

So I want to upload a picture but it only store its description correctly. The file is stored as "noimage.jpg" which means the filename isn’t read. I’m using modal btw. My database is named galleries and the migration contains these: $table->id();$table->timestamps(); $table->string(‘upload’);$table->longtext(‘description’)->nullable(); CONTROLLER: public function store(Request $request) {$galleries=new Gallery; // Handle File ..