minhankyaw

minhankyaw

Member Since 1 Year Ago

Mogok

Experience Points 1,140
Experience Level 1

3,860 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.

13 Feb
1 year ago

minhankyaw left a reply on 'or' Condition In Sql

it's work thank

minhankyaw started a new conversation 'or' Condition In Sql

how can i condition 'or' in sql , this is my code

  ->where('product_name','LIKE','%'.$nameid.'%','OR','product_type','LIKE','%'.$nameid.'%')
11 Feb
1 year ago

minhankyaw left a reply on Check Request::segment And Change Color

I change like this and it's work!

@if(Request::segment(1) === 'typeview' && Request::segment(2) === 'Children Clinic')
  <div style="background-color:green;">
          <a >Children Clinic</a>
  </div>
@else
<div style="background-color:black;">
          <a >Children Clinic</a>
  </div>
@endif  

minhankyaw started a new conversation Check Request::segment And Change Color

I want to change color when url is equal can anybody help me

this is my code

<?php
  $children = "Children Clinic";
?>
@if(Request::segment(1) == 'typeview/.$children')
  <div style="background-color:green;">
          <a >Children Clinic</a>
  </div>
@else
<div style="background-color:black;">
          <a >Children Clinic</a>
  </div>
@endif  
08 Jan
1 year ago

minhankyaw left a reply on Upload Laravel Project To CPanel

it show

[2017-12-19 04:16:26] local.ERROR: Command "make" is not defined.

Did you mean one of these? make:auth make:command make:controller make:event make:exception make:factory make:job make:listener make:mail make:middleware make:migration make:model make:notification make:policy make:provider make:request make:resource make:rule make:seeder make:test {"exception":"[object] (Symfony\Component\Console\Exception\CommandNotFoundException(code: 0): Command "make" is not defined.

Did you mean one of these? make:auth make:command make:controller make:event make:exception make:factory make:job make:listener make:mail make:middleware make:migration make:model make:notification make:policy make:provider make:request make:resource make:rule make:seeder make:test at C:\xampp\htdocs\HospitalDevices\vendor\symfony\console\Application.php:609) [stacktrace] local.ERROR: View [layout.base_layout] not found.

minhankyaw left a reply on Upload Laravel Project To CPanel

@bobbybouwmann i have done and also edit index.php file . but it do not appear anything.

minhankyaw left a reply on Upload Laravel Project To CPanel

@bobbybouwmann Ok, I place all my file into public_html folder and what should i do next?

minhankyaw started a new conversation Upload Laravel Project To CPanel

when i upload my laravel project to cPanel. I move 'public' folder to cPanel 'public_html' folder and other file move to cPanel 'laravel' folder that 'laravel' folder is own create. and edit .env file. But it doesn't work . What can i do that.

minhankyaw started a new conversation Upload Laravel Project To CPanel And Connect With Phpmyadmin

Can anyone show me simple to upload laravel project and connect with phpmyadmin. I already try many way but still doesn't work . I have cPanel host. Help me plz.

29 Dec
1 year ago

minhankyaw started a new conversation How Can I Display Data Uniformly Insert (include Symbol,space,enter..)

i want to display data uniformly insert , include 'space','symbol','enter',.... example , when i insert data like this.

(1) Power supply: AC230V,50/60HZ
(2) Input power: 1100VA
(3) Fuse specification: 51F F6.3AH250V ,5.2*20mm

when display it , it show like this

(1) Power supply: AC230V,50/60HZ (2) Input power: 1100VA (3) Fuse specification: 51F F6.3AH250V ,5.2*20mm

the data show continuously. How can i solve , can anyone help me please.

28 Dec
1 year ago

minhankyaw left a reply on Check Data And Display

no error it's work. but i want to check data has or not.so get data like this and it's not working.

$image1 = $detail->image1;

minhankyaw started a new conversation Check Data And Display

My code something wrong . Can anyone fixed this please.

$image1 = $detail->image1;
            @if(!empty($image1))
              @foreach($detail as $productdetail)
              <img src="<?php echo asset('images').'/'.$productdetail->image1 ?>" class="img-responsive" width="300" height="250">
              @endforeach
            @endif

controller

 public function detail(Request $req, $id)
  {
    $productname = $req->imagename;
    $detail = DB::table('products')
    ->where('product_name','LIKE','%'.$productname.'%')
    ->get();
    return view('detail',compact('detail'));
  }

minhankyaw left a reply on POST Data From Input Within Loop

Thank you guys. It's work. You're the best.

minhankyaw left a reply on POST Data From Input Within Loop

<form action="details" method="post" enctype="multipart/form-data">
@foreach($images as $image)
            <div class="card" >

              <div class="card-inside1" >
                  <div class="center">
                    <img class="card-img-top img-fluid" src="<?php echo asset('images').'/'.$image->image1 ?>" alt="Card image" >
                  </div>

                  <div class="card-body">
                    <input type="text" name="imagename" value="{{$image->product_name}}"></input>
                      <button type="submit" value="Submit" name="more" class="btn btn-primary ">More</button>
                  </div>
              </div>

             </div>
        @endforeach
</form>

route

Route::post("details",'[email protected]');

controller

public function detail(Request $req)
  {
    $productname = $req->input('imagename');
    return $productname;
  }

that's my full code.

minhankyaw left a reply on POST Data From Input Within Loop

@Snapey how can u show me sample please?

minhankyaw started a new conversation POST Data From Input Within Loop

I have many product from database. So display it with loop. When user click more . I want to display it details. The problem is, example: I have four products. A,B,C and D. When user click A's detail. It display D's detail or randomly. How can i fixed this. Can anyone help me please. This is my code

  @foreach($images as $image)
            <div class="card" >

              <div class="card-inside1" >
                  <div class="center">
                    <img class="card-img-top img-fluid" src="<?php echo asset('images').'/'.$image->image1 ?>" alt="Card image" >
                  </div>

                  <div class="card-body">
                    <input type="text" name="imagename" value="{{$image->product_name}}"></input>
                      <button type="submit" value="Submit" name="more" class="btn btn-primary ">More</button>
                  </div>
              </div>

             </div>
        @endforeach

controller

$productname = $req->input('imagename');
26 Dec
1 year ago

minhankyaw started a new conversation Aimate Image From Public Folder

how can i animate all image from public folder.That is my slide

<div id="mycarousel" class="carousel slide" data-ride="carousel">

    <div class="carousel-inner" role="listbox">

        @foreach($images as $image)

            <div class="item">

            <img src="{{ asset('images/' . $image->getFilename()) }}" width="200" height="200" class="display" >

            </div>

        @endforeach

    </div>


    <a class="left carousel-control" href="#mycarousel" role="button" data-slide="prev">

        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>

        <span class="sr-only">Previous</span>

    </a>
    <a class="right carousel-control" href="#mycarousel" role="button" data-slide="next">

        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>

        <span class="sr-only">Next</span>

    </a>

</div>
<script>
       document.querySelector('.carousel-inner > div:first-child').classList.add('active');
</script>

i want to animate and click like that 'http://www.fsyayou.com/En/index.asp'

minhankyaw left a reply on Show All Image One By One From Public Folder

@Sergiu17 thank you buddy , it's worked. Just one thing can you show how to write like this website. 'http://www.fsyayou.com/En/index.asp' image animation and click.

minhankyaw left a reply on Show All Image One By One From Public Folder

@mangitmaharjan yep i want to slide that all image one by one.

minhankyaw started a new conversation Show All Image One By One From Public Folder

when i run this code it displaying all image from my public folder but i want to display one by one . how can i write.

<div id="mycarousel" class="carousel slide" data-ride="carousel">
  <div class="carousel-inner" role="listbox">
    <div class="item active">
      @foreach ($images as $image)

        <img src="{{ asset('images/' . $image->getFilename()) }}">

      @endforeach
    </div>

  </div>
  <a class="left carousel-control" href="#mycarousel" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="right carousel-control" href="#mycarousel" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

controller

  $images = \File::allFiles(public_path('images'));

  return view('welcome')->with('images',$images);
25 Dec
1 year ago

minhankyaw started a new conversation Show All Image

how can i show all image save in public folder. can anyone show me sample please

24 Dec
1 year ago

minhankyaw left a reply on Delete Image From Public Folder

I'm trying to delete image by name , name is already save in database. So i get that name from database and delete by that name.

minhankyaw left a reply on Get Data

@topvillas can you show me sample please

minhankyaw left a reply on Delete Image From Public Folder

so can you please show me sample to delete

minhankyaw left a reply on Delete Image From Public Folder

@Snapey here

$products = DB::table('products')
        ->where('product_name','LIKE','%'.$productname.'%')
        ->get();

minhankyaw started a new conversation Delete Image From Public Folder

i can't delete image from public folder by image name

$imagen1 = $products->get('image1');
$destinationpath = public_path('images');
            File::delete($destinationpath.$imagen1);

minhankyaw started a new conversation Get Data

$products = DB::table('products')
        ->where('product_name','LIKE','%'.$productname.'%')
        ->get();
        $imagen1 = $products->image1;

that was wrong, how can i write it.

minhankyaw left a reply on Get From Disable Text Field

Thank you when i change readonly . It's worked.

minhankyaw started a new conversation Get From Disable Text Field

how can i get from my disable text field. when i write this , not working

<input type="text" class="form-control" name="ProductName" value="{{$p->product_name}}" disabled>

controller

$productname = $request->input('ProductName');
21 Dec
1 year ago

minhankyaw started a new conversation Display Data In Input Type File

hello can i display image name from database into my file type. Like textfield . Example:

<input type="text" class="form-control" name="ProductName" value="{{$p->product_name}}">

minhankyaw left a reply on Search And Display Data In One Form

Thank @RamjihthAp and @bipin . My code is work. i forgot to add csrf_token()

minhankyaw left a reply on Search And Display Data In One Form

@RamjithAp it doesn't work. It only show me page expired. what's wrong i m

view

<form action="postAuth" method="post" enctype="multipart/form-data">
  <div class="input-group">
     <input type="text" class="form-control" name="productname" placeholder="Search Product"> <span class="input-group-btn">
         <button type="submit" class="btn btn-default" name="search">
             <span class="glyphicon glyphicon-search"></span>
         </button>
     </span>
   </div>
 <div class="card-inside">
        @if(!empty($products))
          @foreach($products as $p)
            <div class="form-group">
              <label for="ProductName">Product Name:</label>
              <input type="text" name="form-control" name="ProductName" value="{{$p->product_name}}">
            </div>
          @endforeach
        @endif 
</div>
</form>

controller

public function postAuth(Request $request)
    {
      if($request->input('productname')==null)
      {
      $productname = $request->input('productname');
      $products = DB::table('products')
      ->where('product_name','LIKE','%'.$productname.'%')
      ->get();
     return view('/update',compact('products'));
    }
      else{
       return view('/update');
      }
}

minhankyaw left a reply on Search And Display Data In One Form

hey @bipin thank you for your example. But i have an error . Undefined variable can you check me please.

<form action="postAuth" method="post" enctype="multipart/form-data">
  <div class="input-group">
     <input type="text" class="form-control" name="productname" placeholder="Search Product"> <span class="input-group-btn">
         <button type="submit" class="btn btn-default" name="search">
             <span class="glyphicon glyphicon-search"></span>
         </button>
     </span>
   </div>
    <div class="card-inside">
      @if(!$product==null)
          @foreach($product as $p)
          <div class="form-group">
            <label for="ProductName">Product Name :</label>
            <input type="text" class="form-control" name="ProductName" value="{{$p->product_name}}">
          </div>
          @endforeach
      @endif </div></form>

controller

  public function postAuth(Request $request)
    {
  if($request->input('productname')==null)
      {
          $productname = $request->input('productname');
          $product = DB::table('products')
          ->where('product_name','LIKE','%'.$productname.'%')
          ->get();
          return view('/update',compact('product'));
     }
     else{
       $product=null;
       return view('/update',compact('product'));
     }
}

route

Route::post("postAuth", ['as' => 'search' , 'uses'=> '[email protected]']);
20 Dec
1 year ago

minhankyaw started a new conversation Search And Display Data In One Form

Can anyone please show me a simple example of search by id and display data only in one form. Data display in textfield.

minhankyaw left a reply on Display Data In Text Field

@abhigarg I want to display data in textfield . Not all data. When search by name and it have data then went to display data in textfield. And search form and want to display form is same form.

minhankyaw started a new conversation Display Data In Text Field

how can i display data in text field when search data and have

<form action="postAuth" method="post" enctype="multipart/form-data">
  <div class="input-group">
     <input type="text" class="form-control" name="productname" placeholder="Search Product"> <span class="input-group-btn">
         <button type="submit" class="btn btn-default" name="search">
             <span class="glyphicon glyphicon-search"></span>
         </button>
     </span>
   </div>
<div class="form-group">
         <label for="ProductName" >Product Name :</label>
         <input type="text" class="form-control" name="ProductName">
  </div>

</form>

route

Route::post("postAuth", ['as' => 'search' , 'uses'=> '[email protected]']);

controller

  public function postAuth(Request $request)
    {
      //check submit
      $update = $request->get('update',false);
      if($update){
        return $this->update($request);
      }
      $productname = $request->input('productname');
      $product = DB::table('products')
      ->where('product_name','LIKE','%'.$productname.'%')
      ->get();
      if($product->count() > 0)
        return redirect()->to('/update')->withDetails($product)->withQuery($productname);
      else
        $request->session()->flash('alert-danger','No Data Found!');
        return redirect()->to('/update');
    }

minhankyaw started a new conversation MethodNotAllowedHttpException

I'm trying to search data from database and put into input. When i search data , getting this error

Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException

this is my controller

public function postAuth()
    {
      //check submit
      if(Input::get('search')){
        $this->search(); //if search use this method
      }elseif(Input::get('update')){
        $this->update(); //if update use this method
      }
    }
    public function search(Request $request){
        $productname = $request->input('productname');
        $product = DB::table('products')
        ->where('product_name','LIKE','%'.$productname.'%')
        ->get();
        if($product > 0)
          return view('/update')->withDetails($product)->withQuery($productname);
        else
          $request->session()->flash('alert-danger', 'No Data Found!');
    }

update.blade.php


<form action="postAuth" method="post" enctype="multipart/form-data">
<div class="input-group">
     <input type="text" class="form-control" name="productname" placeholder="Search Product"> <span class="input-group-btn">
         <button type="submit" class="btn btn-default" name="search">
             <span class="glyphicon glyphicon-search"></span>
         </button>
     </span>
   </div><br> <!-- end .search data -->

 <div class="form-group">
         <label for="ProductName" >Product Name :</label>
         <input type="text" class="form-control" name="ProductName" value="{{ old('ProductName', $product->product_name) }}">>
       </div>
<button type="submit" name="update" value="update" class="btn btn-primary">Insert</button>
</form>

and route


Route::get("postAuth", '[email protected]');

minhankyaw left a reply on Store Image Clientoriginalname In Mysql Database

Thank you all , sorry for my late reply .

@RamjithAp your answer worked. I forgot to add

enctype="multipart/form-data"

Thank You.

minhankyaw left a reply on Store Image Clientoriginalname In Mysql Database

when i post my form code , it doesn't appear. How can i show you.

minhankyaw left a reply on Store Image Clientoriginalname In Mysql Database

@RamjithAp Stay error

That's my upload form input

        <input type="file" name="image1">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
    

minhankyaw left a reply on Store Image Clientoriginalname In Mysql Database

@Mo7sin Error returned

"Undefined variable: imagename1"

minhankyaw started a new conversation Store Image Clientoriginalname In Mysql Database

Hello , can anyone help me please . i can't save my image name into database.

that's my controller.

if (Input:: hasFile('image1')) { $image = Input::file('image1');

    $destinationpath = public_path('images');
    $imagename1 = $image->getClientOriginalName();
    $image->move($descriptionpath,$imagename1);
  }

$insert = array( 'image1' => "imagename1 ", ); DB::table('products') -> insert($insert);