Hourlee

Hourlee

Member Since 1 Year Ago

Experience Points
590
Total
Experience

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-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

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

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

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

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    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 Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

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

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

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

Level 1
590 XP
Aug
14
1 year ago
Activity icon

Replied to Upload Excel Into Vuejs

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

Activity icon

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

Aug
10
1 year ago
Activity icon

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.

Aug
08
1 year ago
Activity icon

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 = ?

Aug
03
1 year ago
Activity icon

Replied to 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.

Activity icon

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.

Jul
27
1 year ago
Activity icon

Started a new conversation Call To A Member Function GetClientOriginalName() On Null

Here's my controller

namespace App\Http\Controllers; use App\FileEntry; use App\Project as Project; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Storage;

class FileEntriesController extends Controller { public function index() { $files = FileEntry::all(); return view('files.index', compact('files')); } public function create() { return view('files.create'); } public function save($id, Request $request) { $this->validate($request, [ // 'file' => 'image|max:3000' ]);

    $file = Input::file('file');

    $filename = $file->getClientOriginalName();

    $path = hash( 'sha256', time());
    if(Storage::disk('uploads')->put($path.'/'.$filename,  File::get($file))) {
        $entry = new FileEntry;            
        $project_id = Project::find($id);
        $entry->project_id = $project_id;
        $entry->filename = $filename;
        $entry->mime = $file->getClientMimeType();
        $entry->path = $path;
        $entry->size = $file->getClientSize();
        $entry->save(); 
        return response([
                'status' => true,
                'msg' => 'A file has been saved!'
            ]);
    }
    return response()->json([
        'success' => false
    ], 500);
}

}

Jul
17
1 year ago
Activity icon

Replied to Fetching Data From Database To Show In Options In Select2

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

Jul
16
1 year ago
Activity icon

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.

Jul
12
1 year ago
Activity icon

Replied to Undefined Index: Features

@arifkhn46 can you write it please?

Activity icon

Started a new conversation Undefined Index: Features

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

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

            };
Jul
11
1 year ago
Activity icon

Replied to Two Ids Waiting For Each Other

it solved. Thanks

Activity icon

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;
Activity icon

Replied to Storing Array Value From Vue

I want to store these two

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

Activity icon

Replied to 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>
return{ ID:null, projectName:null, customerName:null, start_date:null, end_date:null, description:null, image:'', myValue: '', customer_names: ['Sok', 'Sao', 'Som'], rows: [ features = '', prices = '' ] } },
Activity icon

Started a new conversation Storing Array Value From Vue

I want to store array value from a form in vue by using controller. I am using loop v-for in my form, and I want to get all the values from there. Please help.

            $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;
Jul
10
1 year ago
Activity icon

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,