Maung-C

Maung-C

Member Since 1 Year Ago

Yangon

at Laravel Web Developer

Experience Points 1,710
Experience Level 1

3,290 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 5
Lessons
Completed
Best Reply Awards 1
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.

13 May
1 month ago

Maung-C left a reply on How To Update Multi Data Into Database

it's update last record only save two row.

Maung-C started a new conversation How To Update Multi Data Into Database

i want to update multi data in my car_trips table, and how to do. follow my code.thanks for your time.

        // dd($car_trips);
        foreach ($request['group_a'] as $car_trip) {
            $carTrip = Car_Trip::where('invcode',$id)->update([
                'check_in' => $car_trip['check_in_show'],
                'check_out' => $car_trip['check_out_show'],
                'trip' => $car_trip['trip'],
                'guest_name' => $car_trip['guest_name'],
                // 'invcode' => $invoicesave,
            ]);
        }
11 May
1 month ago

Maung-C left a reply on How To Get Insert Id

@bobbybouwmann thanks. Solved

Maung-C started a new conversation How To Get Insert Id

How can i get table id with insertGetId. below my code .

                Car_Trip::create([
                    'check_in' => $car_trip['check_in_show'],
                    'check_out' => $car_trip['check_out_show'],
                    'trip' => $car_trip['trip'],
                    'guest_name' => $car_trip['guest_name'],
                    'invcode' => $invoicesave,
                ])->insertGetId();
            }
10 May
1 month ago

Maung-C left a reply on Laravel Crud Edit

public function edit($id){ $shares = Url::join('categories','categoires.id','$id')->first(); return view('edit',compact('shares')); }

27 Feb
3 months ago

Maung-C left a reply on Store Into Database Data Record

@SERGIU17 - there is store 2 record into database but i save 1 record are group array.

Maung-C left a reply on Store Into Database Data Record

@TYKUS - yeh i use jquery repeater js

Maung-C started a new conversation Store Into Database Data Record

this is my dd($request); output `+request: ParameterBag {#39 ▼ #parameters: array:5 [▼ "_token" => "3s7Pc0KWNdHqM2kPrY91arnJ6P2JgtY6qP3yanxM" "customer_id" => "1" "stock_date" => null "invoice_code" => "000001" "group-a" => array:2 [▼ 0 => array:5 [▼ "item" => "1" "unit" => "1" "qty" => "2" "amount" => "13000" "total" => "26000" ] 1 => array:5 [▼ "item" => "2" "unit" => "1" "qty" => "3" "amount" => "12500" "total" => "37500" ] ] ] } how to store into database with store function ? please

26 Feb
3 months ago

Maung-C left a reply on Want Multiple 2 Digit In Jquery

i have these two input fields

and

about solution isn't work. please how to do ?

Maung-C started a new conversation Want Multiple 2 Digit In Jquery

i want to get multiplies digits from tow input fields. e.g first input has 2 and second input has 200 is equal next field have auto calculation out put. how to do ?.

25 Feb
3 months ago

Maung-C started a new conversation Generate Invoice Number

i want to generate invoice number that record has or not my table. if not, create invoice_no start ( 000001) and next record have (000002)

12 Feb
4 months ago

Maung-C started a new conversation Add To Number Increase To Database

i wanna to amount only increase ( + $request->amount ) store in database. Please help me, thanks sir.

        if($request->m_name == $data->m_name && $request->color == $data->color && $request->size == $data->size){
            $data->amount = ++$request->amount;
            // dd($data);

            $data::save();
            Session::flash('success_msg', 'Product  model '.$products->m_name. ' added amount successfully!');

        return redirect('/products');
        }```
13 Jul
11 months ago

Maung-C left a reply on Css Js File Not Loading

You should not link into resource folder css and js, you should use into public folder css and js . eg. Try like below

    <link href="{{asset('css/layout_style.css')}}" rel="stylesheet">
// javascript link
    <script src="{{asset('js/bootstrap.min.js')}}"></script>
    <script src="{{asset('js/jquery-1.11.1.min.js')}}"></script>

09 Jul
11 months ago

Maung-C left a reply on How To Properly Remove Package?

Make sure it's properly installed with composer and clear your bootstrap/cache/config into your provider array and remove applicable your package name and rearrange your key value.

05 Jul
11 months ago

Maung-C started a new conversation Datetimepicker Date Different

I want to date difference between using datetimepicker not datepicker .how cant i get and i try but it's show " NaN " . below my javascript

        $('#createModal').on('show.bs.modal', function (event) {
            var fromDate = button.data('fromdate')
            var toDate = button.data('todate')

            var from = $('#fromDate').val();

                var to = $('#toDate').val();
                var diff = Date(to - from);
                var days = diff/1000/60/60/24;
                
            console.log(days)
    )};
 
02 Jul
11 months ago

Maung-C started a new conversation Bootstrap 4 Datetimepicker Change Format

I wanna to change date time format " 0000-00-00 00:00:00 " https://tempusdominus.github.io/bootstrap-4/Usage/ form this site, plz help me sir.

my javascript

        $('#datetimepicker1').datetimepicker({
            format: 'Y-m-d H:i:s'
        });
    });

show like this  "2018-0-1 16:i:45"  
27 Jun
11 months ago

Maung-C started a new conversation I Store Into Database Value Is `1` And `null` If Submit Check Box Is 1 Store In DB.i Have Already Get Value For Javascript Data But How To Get And Show In Edit Form.

This is my form.

                    <div class="card-body">
                        {!! Form::model($diagnosis, ['id' => 'form_name', 'class' =>'form-horizontal' , 'data-toggle' => 'validator', 'method' => 'POST']) !!}
                        <input type="hidden" name="_method" value="PATCH" id="extra">
                        <div class="form-group row">
                            <label class="col-md-3 col-form-label" for="name">Diagnosis</label>
                            <div class="col-md-9">
                                <input type="text" id="diagnosis" name="diagnosis" value="{{old('diagnosis')}}" class="form-control" placeholder="Enter Diagnosis..">
                                <input type="hidden" class="form-control" name="diagnosisPK" id="diagnosisPK">
                                <div class="help-block with-errors"></div>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-md-3 col-form-label" for="name">Available</label>
                            <div class="col-md-9">
                                <div class="form-check checkbox mt-2">
                                    <input name="isActive" class="form-check-input" type="checkbox"  id="isActive" >
                                    <label class="form-check-label" for="isActive">
                                        Available
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="pull-right">
                            <button type="submit" class="btn btn-pill btn-success btn-outline-success">
                            Submit</button>
                            <button type="button" data-dismiss="modal" class="btn btn-pill btn-danger btn-outline-danger">
                            Close</button>
                        </div>
                        {!! Form::close() !!}
                    </div>

                </div>```
This is my javascript.
```$( document ).ready(function() {
        $('#editModal').on('show.bs.modal', function (event) {
            var button = $(event.relatedTarget)
            var diagnosis = button.data('diagnosis')
            var isactive = button.data('isactive')
            var id = button.data('id')
            var modal = $(this)
            console.log(id)
            console.log(diagnosis)
            console.log(isactive)
            modal.find('.modal-body #diagnosis').val(diagnosis)
            modal.find('.modal-body #isActive').val(isactive)
            modal.find('.modal-body #id').val(id)

            if (id) {
                $("#form_name").attr("action","{{ url('diagnosis') }}" + '/' + id);
                $("#myModalLabel").text("Edit Diagnosis");
                $("#extra").prop( "disabled", false );
            } else {
                $("#form_name").attr("action","{{ url('diagnosis') }}");
                $("#myModalLabel").text("Create Diagnosis");
                $("#extra").prop( "disabled", true );
            }

        });
    });
20 Jun
11 months ago

Maung-C left a reply on Image View

@Yoki i get it Thanks alot of, i'm begin learn laravel and jquery so i get like this modal.find('.modal-body #photo').attr('src', '/photo/'+ photo);

Maung-C left a reply on Image View

So, how to add in path in src="" it's show that `````

Maung-C started a new conversation Image View

i want to view image form jquery data and how to get This is my jquery

        $('#showModal').on('show.bs.modal', function (event) {
            var button = $(event.relatedTarget)
            var photo = button.data('photo'))
            var modal = $(this)
            
            modal.find('.modal-body #photo').val(photo)

        });
    });```

i want in html 
```<img src="" name="photo" id="photo" alt="Image of" class="img-responsive">```
how it plz

Maung-C left a reply on ErrorException In ProfileController.php Line 98: Creating Default Object From Empty Value

And then you change redirect route

        $users->name= request('name');
        $users->email= request('email');
        $users->save();
        return redirect('user/profile');```
07 Jun
1 year ago

Maung-C left a reply on Laravel 5.5 & Bootstrap 4 Pagination Issues

Change your controller.php $users = DB::table('users')->orderBy('created_at', 'desc')->simplePaginate(5); to $users = DB::table('users')->orderBy('created_at', 'desc')->paginate(5);

and then you can use {{ $users->render() }}`` or{{ $users->links() }}``` for your view pagination simplePaginate() method is show next and previous link only.

08 May
1 year ago

Maung-C left a reply on Can't Write Image Data To Path

You need to create " uploads" folder in public path in your project