Hourlee

Hourlee

Member Since 10 Months Ago

Experience Points 590
Experience Level 1

4,410 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

14 Aug
9 months ago

Hourlee left a reply on Upload Excel Into Vuejs

no this isn't what i want. i want the data in excels uploading into database table fields.

Hourlee left a reply on Upload Excel Into Vuejs

getProject(){ var app = this axios.get('/projects/project/'+app.$route.params.id) .then(function (response) { var data = response.data app.ID = data.id app.projectName = data.project_name app.totalPrice = data.total_price app.start_date = data.start_date app.end_date = data.end_date app.categoryData = data.project_category_id app.customerData = data.customer_id app.description = data.description app.rows = data.scopes app.files?????

        })

Hourlee left a reply on Upload Excel Into Vuejs

no. this isn't what i want. I want to show the uploaded files on my vue edit form. So, user can see them and update them. i am working on edit form which allows user to edit the information they have input.

Hourlee started a new conversation Convert Object To Array

i am using vue paginator and vue-json-to-excel. Vue paginator needs data in object while vue-json-to-excel needs data in array. How can I make this work? Thanks

10 Aug
9 months ago

Hourlee started a new conversation Upload Excel Into Vuejs

I am developing a SPA using vue js and laravel. I want to know how to upload excel file into database by using vue js. I have been successfully export JSON from vue js to excel by using vue-json-excel.

08 Aug
9 months ago

Hourlee started a new conversation Getting Files That Uploaded To Database To Show On Edit Form

I have a CreateProjectLayout which allows user to upload related files into my database. I also have an EditProjectLayout which get all the data from the database to show in each form field. I want to know how to get files that uploaded to show in the form field.

Attachments

                                <div>
                                    <input type="file" id="files" ref="files" multiple v-on:change="handleFiles()"/>
                                </div>

                                <br>
                                <br>

                                <div v-for="(file, key) in files" class="file-listing">
                                    <img class="preview" v-bind:ref="'preview'+parseInt(key)"/>
                                    {{ file.name }}
                                    <div class="success-container" v-if="file.id > 0">
                                        Success
                                        <input type="hidden" :name="input_name" :value="file.id"/>
                                    </div>
                                    <div class="remove-container" v-else>
                                        <a class="btn btn-danger" type="button" v-on:click="removeFile(key)">Remove</a>
                                    </div>

axios.get('/projects/project/'+app.$route.params.id) .then(function (response) { var data = response.data app.ID = data.id app.projectName = data.project_name app.totalPrice = data.total_price app.start_date = data.start_date app.end_date = data.end_date app.categoryData = data.project_category_id app.customerData = data.customer_id app.description = data.description app.rows = data.scopes app.files = ?

03 Aug
9 months ago

Hourlee left a reply on Showing Category Name Instead Of Id

I have already set up the one-to-one relationship. I don't know how to make the controller works.

Hourlee started a new conversation Showing Category Name Instead Of Id

I have two different tables - projects and project_categories. In projects table, I have category_id column. I want to show all column in projects and instead of showing category_id, I want to show name.

17 Jul
10 months ago

Hourlee left a reply on Fetching Data From Database To Show In Options In Select2

i'm using vue js and laravel. Do you have another example?

16 Jul
10 months ago

Hourlee started a new conversation Fetching Data From Database To Show In Options In Select2

I have a form - a dropdown which I use select2. I want to search and select a name that is in database. I'm using axios to get data but I do not know how to display the name in the dropdown.

12 Jul
10 months ago

Hourlee left a reply on Undefined Index: Features

@arifkhn46 can you write it please?

Hourlee started a new conversation Undefined Index: Features

$rows = $request->get('rows'); foreach ($rows as $row){

                    $scope->features[] = $rows['features'];
                    $scope->prices[] = $rows['prices'];         
                    

            };
11 Jul
10 months ago

Hourlee left a reply on Two Ids Waiting For Each Other

it solved. Thanks

Hourlee started a new conversation Two Ids Waiting For Each Other

I want to save a form into two tables. I have two models using in one controller. There are two ids that are waiting for each other. I don't know how to fix this. Please help

            $project = new Project;

            $project->project_name = $request->projectName;
            $project->start_date = date("Y-m-d", strtotime($request->start_date));
            $project->end_date = date("Y-m-d", strtotime($request->end_date));
            $project->description = $request->description;
            $project->created_by = Auth::user()->id;

            $scope = new Scope;
            $scope->project_id = $project->id;

            $rows = $request->get('rows');
            foreach ($rows as $row){

            $scope->features = ($row['features']);
            $scope->prices = ($row['prices']);

            };

            $scope->save();


            $project->projectScope_id = $scope->id;

Hourlee left a reply on Storing Array Value From Vue

I want to store these two

$projects->features = $request->get('row.features'); $projects->prices = $request->prices;

Hourlee left a reply on Storing Array Value From Vue

SCOPE OF PROJECTS*
                                <div id="SCOPE" v-for="(row, index) in rows">
                                <div class="row">
                                    <div class="col-md-6 pr-1">
                                        <div class="form-group">
                                            <label>Features <i class="text-danger">*</i></label><textarea rows="4" class="form-control" placeholder="Features" name="features" v-model="row.features" v-validate="{ required: true }"></textarea>
                                            <small class="form-text text-danger">{{ errors.first('row.features') }}</small> 
                                        </div>
                                    </div>

                                    <div class="col-md-4 pl-1">
                                        
                                            <label>Prices <i class="text-danger">*</i></label>
                                            <input class="form-control" placeholder="Prices" name="prices" v-model="row.prices" type="float" v-validate="{ required: true }"></input>
                                            <small class="form-text text-danger">{{ errors.first('row.prices') }}</small>
                                        
                                    </div>

Hourlee left a reply on Storing Array Value From Vue

$project->project_name = $request->projectName; $project->customer_id = $request->customerName; $project->start_date = date("Y-m-d", strtotime($request->start_date)); $project->end_date = date("Y-m-d", strtotime($request->end_date)); $project->description = $request->description; //$project->file_name = $request->file; $projects->features = $request->get('row.features'); $projects->prices = $request->prices; $project->created_by = Auth::user()->id;

Hourlee started a new conversation Storing Array Value From Vue

I want to store array value from a form in vue by using controller. Please help.

10 Jul
10 months ago

Hourlee started a new conversation Laravel Show Customer_name By Using Customer_id

I am using laravel and vue js. I have two tables: customers and projects. I have a form - a dropdown form which user can select a customer_name. However, in the projects table, I want to store customer_id from the form selected by the user. I want to use id in customers table to show customer_name in the form. How this can be done?

Thanks,