Odkhuu

Odkhuu

Member Since 4 Years Ago

Ulaanbaatar

Experience Points 7,325
Experience Level 2

2,675 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 125
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.

16 Feb
3 years ago

Odkhuu started a new conversation Multiple Select Form In Laravel 5.2

how to fix my project worked laravel 5.1 same tutorial https://laracasts.com/series/laravel-5-fundamentals/episodes/23 model ''' public function countries() { return $this->belongsToMany('App\Country')->withTimestamps(); } public function getCountryListAttribute() { return $this->countries()->pluck('id')->all(); } ''' form "used html collective" '''

{!! Form::label('country_list','Улсын сонголт:') !!} {!! Form::select('country_list[]', $countries, null, ['id' => 'tag_list','class'=>'form-control', 'multiple']) !!} ''' controller ''' public function edit(Article $article) { // dd($article->country_list); //country_list[]); $countries = Country::pluck('name','id')->all();
    return view('articles.edit', compact('article', 'countries'));
}

''' error FatalErrorException in DatabaseManager.php line 84: Maximum function nesting level of '100' reached, aborting!

07 Feb
3 years ago

Odkhuu started a new conversation How To Update Html Form In Laravel 5.2

my edit page

<form method="POST" action="{{ action('CategoryController@update', ['id' => $category->id]) }}" accept-charset="UTF-8">
            <input type="hidden" name="_method" value="PUT">
            <div class="panel">
                <div class="panel-body">
                    <fieldset>
                        {!! csrf_field() !!}
                        <div class="form-group">
                            <label for="name" class="control-label">name:</label>
                            <input class="form-control" type="text" name="name" value="{{ $category->name }}" >
                        </div>
                        <div class="">
                            <button type="submit" class="btn btn-primary btn-join">edit</button>
                        </div>
                    </fieldset>
                </div>
            </div>
        </form>

CategoryController@update

public function update(CategoryRequest $request, $id)
    {
        
        $category = Category::findOrFail($id);
        $category->update($request->all());
        
        if (is_null($category))
        {
            return Redirect('categories');
        }
        return view('categories.edit', compact('category'));
    }

my Route code

Route::group(['middleware' => ['web', 'auth']], function () {
    Route::resource('categories', 'CategoryController');
});

ERROR

Forbidden

how to fix

29 Jul
3 years ago

Odkhuu left a reply on Problem With Foreign Key

same problem fixed

15 Jun
4 years ago

Odkhuu left a reply on Can't Write Image Data To Path For Image Manupulation

  • i was able to uploaded images in wampserver
  • my upload images different filenames

Odkhuu left a reply on Can't Write Image Data To Path For Image Manupulation

i can't create image error

NotWritableException in Image.php line 138:
Can't write image data to path (/home/testproject/laravel/public/images/articles/2015-06-15-300x300-20150605.jpg)
PhotosController.php

public function store()
    {
        $input = Input::all();
        $path = public_path('images/articles/');
        $fileName = $input['fileName']->getClientOriginalName();
        $today = date('Y-m-d');
        
    $image = Image::make($input['fileName']->getRealPath());
        //File::exists($path) or File::makeDirectory($path);
        $image->save($path . $today .'-'. $fileName, 100); //ERROR LINE
        //Photo::create(array('path' => 'mydomainname/images/articles/'. $today .'-' . $fileName, 'name' => $input['name'] ));

        return Redirect('photos');
    }

Odkhuu left a reply on Can't Write Image Data To Path For Image Manupulation

@mstnorris cmod 777 public_html/images/articles

Odkhuu started a new conversation Can't Write Image Data To Path For Image Manupulation

  • laravel 5.0
  • linux server cpanel
  • php 5.6 checked fileinfo, fd, imagick

''' $input = Input::all(); $path = public_path('images/articles/'); $fileName = $input['fileName']->getClientOriginalName(); $today = date('Y-m-d');

$image = Image::make($input['fileName']->getRealPath());
//File::exists($path) or File::makeDirectory($path);
$image->save($path . $today .'-'. $fileName, 100);

'''

error ''' NotWritableException in Image.php line 138: Can't write image data to path (/home/testproject/laravel/public/images/articles/2015-06-15-gerbul.jpg) ''' help

09 Jun
4 years ago

Odkhuu left a reply on Image Manupulation

my server cpanel. add gd and imagick fileinfo checked. i'm doing lesson Image Manupulation. upload image is not save. no error. why?