Maung-C

Maung-C

at Laravel Web Developer

Member Since 1 Year Ago

Yangon

Experience Points
1,710
Total
Experience

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-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
1,710 XP
13 May
4 months ago

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

@tisuchi 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
4 months 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
4 months ago

Maung-C left a reply on Laravel Crud Edit

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

27 Feb
6 months ago

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

@SERGIU17 - there is store 2 record into database but i want to 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->all()); output

  "_token" => "3s7Pc0KWNdHqM2kPrY91arnJ6P2JgtY6qP3yanxM"
  "customer_id" => "1"
  "stock_date" => "27/02/2019"
  "invoice_code" => "000001"
  "group-a" => array:2 [▼
    0 => array:5 [▼
      "item" => "1"
      "unit" => "1"
      "qty" => "3"
      "amount" => "13000"
      "total" => "39000"
    ]
    1 => array:5 [▼
      "item" => "3"
      "unit" => "1"
      "qty" => "2"
      "amount" => "15000"
      "total" => "30000"
    ]
  ]
]

how to store into database with store function ? please
this is my table columns 
`id,stock_id,qty_in_pack    ,qty,qty_in_pound,customer_id,invoice_code,stock_date,total,amount,unit,qty_in_packing`
so stock_id is save to item column
26 Feb
6 months ago

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

i have these two input fields

<input type="text" class="form-control" name="amount" id="amount"> 
and 
 <input type="text" class="form-control" name="total" id="total">
 
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
6 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
7 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 '.$data->m_name. ' added amount successfully!');

        return redirect('/products');
        }```
13 Jul
1 year 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 . Coy and paste into public folder your css files and js files from resource. eg. Try like below

//css link
    <link href="{{asset('css/bootstrap.min.css')}}" rel="stylesheet">
    <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
1 year 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.

Remove this your_key_number => 'Waavi\\Translation\\TranslationServiceProvider',

05 Jul
1 year 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

        $('#myModal').on('show.bs.modal', function (event) {
            var button = $(event.relatedTarget)
            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
1 year 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
1 year 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 From 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
1 year 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 <img name="photo" id="photo" alt="Image of" class="img-responsive" src="15294916695.jpg">

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 should 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 of your project