adhik13th

adhik13th

Member Since 3 Months Ago

Experience Points 1,190
Experience Level 1

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

17 Jul
2 days ago

adhik13th left a reply on Datatables Can Showing Data/result But Sometimes Often Get Error 404

but its not showing id , i just showing data from DB to parsing to tables . and i use ->get

public function indexDataTables4()
{

$riwayat = Data_riwayat_kgb::with('data_pns','data_pns.users')->get();
 
return Datatables::of($riwayat)->addIndexColumn()
->make(true);

}

adhik13th started a new conversation Datatables Can Showing Data/result But Sometimes Often Get Error 404

I have a table and showing data and using Datatables Yajra to get search and pagination . This datatables is work ,showing data , all function is OK .

But if i reload this page,search some words , is often to showing error :

DataTables warning: table id=table1 - Ajax error. For more information about this error, please see http://datatables.net/tn/7

But , if i load again its normal . i dont know what happen , my script is not fault because this data is showing .

I am using laravel and still using Php Artisan Serve to start project. some poeple give me solution to using Xampp or Wampp , but i cant use it because its make me changed so many script.

how i can solved this ? if you using this datatbles , is you have same problem like i am ?

like this thread https://stackoverflow.com/questions/54700438/internal-server-error-when-running-running-yajra-datatable-using-php-artisan-ser

16 Jul
3 days ago

adhik13th left a reply on How To Showing Data On Blade With Pass Through 2 Table FK

ups iam sorry for my typo sir, i update my thread

adhik13th left a reply on How To Showing Data On Blade With Pass Through 2 Table FK

i set this . like your comment sir

adhik13th started a new conversation How To Showing Data On Blade With Pass Through 2 Table FK

I have 3 table like users , data_users , practice

users      : id , name ,dob ,email , etc . . .

data_users : id , user_id , number_exp , etc . .

practice   : id , data_user_id , practice_number , etc ....

in 3 tables connect by relation belongsTo and and want to showing this . i want to show data on table practice :

My controller :

public function show()
{
    $practice= Practice::with('data_users')->get();

    return view('admin.practice' ,['practice'=>$practice]);
}

my view

 <table class="table table-bordered">
              <thead>
                <tr>
                  <th>No</th>
                  <th>Name</th>
                  <th>No Surat</th>
                  <th>Date</th>
                  <th>Status</th>
                </tr>
              </thead>
              <tbody>
                @foreach ($riwayat as $i)
                <tr>
                  <th scope="row">1</th>
                  <td>{{ $i->data_users->users->name}}</td>//i want to show name but i cant show this
                  <td>{{ $i->practice_number}}</td>
                  <td>{{ $i->practice_date}}</td>
                  <td>{{ $i->status}}</td>
                </tr>
                @endforeach
              </tbody>
            </table>

i have problem to showing Data 'NAME' form table users , and i just can showing id from data_users

but still error Trying to Get property

14 Jul
5 days ago

adhik13th started a new conversation How To Select Dropdown Using Pluck Using Foreign Key

I'd like to show names on my select dropdown

I have 3 tables: 'users','users_pro' and 'practice'

users : id ,name ,dob ,.. etc

users_pro : id ,user_id,..etc

practice : id , user_pro_id ,...etc

I want to input data to table 'practice' and I want to make a select dropdown using pluck on users_pro with users like this :

public function input_practice()
{
    $data= Users_pro::with('users')->get()->pluck('id','user_id');
    
    dd($data);
    // return view('admin.input.input_riwayat_kgb',
    // [
    // 'data'=>$data,
    

    // ]);
}

If I dd($data), I get :

    Collection {#327 ▼
  #items: array:4 [▼
    6 => 3 // 6 is user_id ,and 3 is 'id' on users_pro , i need to show 'name' like 3 => 'jhon'
    13 => 4
    12 => 5
    14 => 6
  ]
}

But I want to show the name of the user on my select dropdown. Can someone help me?

23 Jun
3 weeks ago

adhik13th left a reply on Laravel Set Date To D-M-Y On Carbon

@NAKOV - nice thanks for this answer is solved . i used getDateAttribute() . and now i want to add this timezone . if normal view is = 27-Jan-2020 . i live at indonesia , i add this timezone but not changed .

`public function getDateAttribute() { return \Carbon\Carbon::parse($this->attributes['date']) ->timezone('Asia/Jakarta') ->format('d, M Y ');

}`

this output still 27-Jan-2020 not 27-Januari-2020

adhik13th left a reply on Laravel Set Date To D-M-Y On Carbon

@NAKOV - this output like this 1996-05-15 00:00:00

adhik13th started a new conversation Laravel Set Date To D-M-Y On Carbon

i have a data and want to parsing at view .

this Table name is 'training'

id | name | user_id | no_training| date| created_at| updated_at|

and parsing view like this

1| software dev| 3| 198734-2445| 2018-06-20| 2019-06-19 19:30:40| 2019-06-19 19:30:40|

and i want to parsing at the view 'date' not = 2019-06-19 , but i want to view like , 19-June-2019 or 19-Juni-2019 (indonesian(id) Time)

what i need to add for my Controller or model ?

My Model :

   <?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Training extends Model
{
    protected $table = 'training';

    protected $fillable = [
        'user_id','name','no_training','date',
    ];

    public function users()
    {
        return $this->belongsTo(\App\User::class ,'user_id');
        
    }
}

my Controller :

public function training()
{
    $training = Training::with('users')->get();
    
    return view('admin.training',['training' => $training]);
}
18 Jun
1 month ago

adhik13th left a reply on How To Joining Table In Laravel 5.8

why its solved if i changed HasMany to BelongsTo

adhik13th left a reply on How To Joining Table In Laravel 5.8

@JLRDW - $i->users->name . i used this on other table its work

adhik13th left a reply on How To Joining Table In Laravel 5.8

@SERGIU17 - and how i can display this on view ? like $i->users->name . its right ?

adhik13th started a new conversation How To Joining Table In Laravel 5.8

I have 2 table users and data .

in users table have :

id | name |email | etc

in data table have :

id | user_id | no_data | etc

i create model Data like this

public function users()
{
    return $this->HasMany(\App\User::class ,'id');
}

my Controller :

public function pns()
{
    $data = Data::get();

    //DB::table('data')
        //->join('users','data.user_id','=','users.id')
        //->where(['user' => 'something', 'otherThing' => 
         // 'otherThing'])
        //->get(); // i trying to join this table but still error 


    return view('admin.data',['data' => $data]);
}

now i want to show view data in table :

on my view blade :

 <th>No </th>
 <th>id </th>
 <th>Name </th>
 <th>email </th>


  @php
  $no=0;
  @endphp
  @foreach ($data as $i)
  <tr>
   <td class=" ">{{ ++$no }}</td>
   <td class=" ">{{ $i->user_id}}</td>
   <td class=" ">{{ $i->users->name}}</td>
   <td class=" ">{{ $i->email}}</td>
  </tr>

this user_id is showed ,but this 'name' is cant showed and get error :

Property [name] does not exist on this collection instance.

29 May
1 month ago

adhik13th left a reply on Simple Foreign Key Didnt Work . Laravel 5.8

@THEPOET444 - i dont understand , can you give me a simple example .

my step is i creating table roles . and i create table users with FK on roles . but how if i want to add another FK on Users table to another table ? i need to drop users table again ?

adhik13th left a reply on Simple Foreign Key Didnt Work . Laravel 5.8

@THEPOET444 - ok its work. how about if i want to add any Foreign Key ? i need to always delete Users table ?

adhik13th left a reply on Simple Foreign Key Didnt Work . Laravel 5.8

@THEPOET444 - you mean , i need create table roles first ?

adhik13th started a new conversation Simple Foreign Key Didnt Work . Laravel 5.8

I have two tables like User and Roles . i want to added foreign Roles_id on Table Users .

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->bigIncrements('id');
        $table->string('NIK',16);
        $table->string('nama');
        $table->string('email')->unique();
        $table->string('username');
        $table->string('password');
        $table->unsignedBigInteger('roles_id')->default(1);
    
        $table->timestamps();
        $table->softDeletes();

        $table->foreign('roles_id')->references('id')->on('roles');
    });
}

and my roles table

 public function up()
{
    Schema::create('roles', function (Blueprint $table) {
        $table->bigIncrements('id');
        $table->string('roles');
        $table->timestamps();
    });
}

iam not catching the miss code , i using unsignedBigInteger , ann still error . i am using -> nullable . but didnt work . can somone find this error ?

edit . this error :

SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table users add constraint users_roles_id_foreign foreign key (roles_id) references roles (id))

19 May
2 months ago

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - No one changing . i rename this but not change anything .

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - my folder stricture

  • laravel
  • public_ftp
  • public_html
    • laravel *css *js

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - i not add RewriteBase on htaccess , its the problem ? and i think '../../' not the problem

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - no no , i remake all my upload file laravel on shared hosting using your tutorial . i following step and finish , i run my website example www.domain.com , if i run this its will showing like homepage, but in my url www.domain.com its showing Index Of .

https://ibb.co/FY4qZJF

its the picture . its wrong on htacces or what ?

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - i have problem . i follow this tutorial but , my view on www.domain.com is list of "Index Of" (if u know what i mean) , and for public i create folder named laravel . i access www.domain.com/laravel , its error 500 .

16 May
2 months ago

adhik13th left a reply on Laravel Saved File To Wrong Directory

@JLRDW - wait , i will following this step .

adhik13th left a reply on Laravel Saved File To Wrong Directory

@LYNX39 - i change permission o public_html to 777 and still not upload on public_html

adhik13th started a new conversation Laravel Saved File To Wrong Directory

I have a function to upload file . on Localhost its not having error . but after i deploy on shared hosting , its have problem . if localhost ,im not moving some folder , but on "tutorial" shared hosting , i need making 2 folder . laravel and public . this laravel folder is all file on project laravel without public

its my schema on my shared hosting

(/home/sippausr)

etc

laravel ->

  • app

  • bootstrap

  • config

  • database

  • public_html

    • files ( this file saved here)
  • resources

  • routes

  • storage

  • tests

  • vendor

logs

mail

public_ftp

public_html ->

  • css

  • files (not on here, i need to save here)

  • home

  • images

  • js

  • kalibrasi

  • public

  • sop

  • theme

and i have a function to upload file and saved this file to directory files on public_html like this

public function store6(Request $request)
{
    $this->validate($request, [
        

    ]);

    
    if($request->hasfile('image'))
     

        
        {   $file = $request->file('image');
            $name=$file->getClientOriginalName();
            $file->move(public_path().'/files/', $name);  
            $data = $name;  
        }
    

    $user = new pemeliharaan;
    $id = Auth::user()->id;

    $user->user_id = $id;
    $user->alat_id = $request->alat_id;
    $user->pertanyaan =json_encode($request->except
    (['_token','name','alat_id','status','catatan','image']));
    $user->catatan = $request->catatan;
    $user->image=$data;
    $user->status = $request->status;


    $user->save();
  // dd($user);
    return redirect('user/show6')->with('success', 'Data Telah Terinput');

}

but , this file not saved at public_html/files ,

this file saved at Laravel folder , on public_html( you can see at schema) . can someone help me ?

adhik13th left a reply on Upload Image Not Saved At Directory On Server Laravel 5.8

@SNAPEY - in shared hosting laravel we save the file in public_html . its right ?

adhik13th left a reply on Upload Image Not Saved At Directory On Server Laravel 5.8

@MUNAZZIL - No sir , in my local its work and saved this data to directory an database . i think this problem is "how to save this file to directory"

adhik13th left a reply on Upload Image Not Saved At Directory On Server Laravel 5.8

@JAIKANGAM - permission is just folder bro . chmod -777

adhik13th left a reply on Upload Image Not Saved At Directory On Server Laravel 5.8

@LIDE - no , didnt work use store . i think move is right sir

15 May
2 months ago

adhik13th started a new conversation Upload Image Not Saved At Directory On Server Laravel 5.8

I deploy my website , and i have a bug on my upload image , this image cant saved at directory

my directory is in

in public_html on folder named files

on localhost its not having problem but after i deploy this , i have it .

my Controller on my localhost (not have problem like this)

 public function store6(Request $request)
{
    $this->validate($request, [
        

    ]);

    if($request->hasfile('image'))
     

        
        {   $file = $request->file('image');
            $name=$file->getClientOriginalName();
            $file->move(public_path().'/files/', $name);  
            $data = $name;  
        }
    

    $user = new pemeliharaan;
    $id = Auth::user()->id;

    $user->user_id = $id;
    $user->alat_id = $request->alat_id;
    $user->pertanyaan =json_encode($request->except
    (['_token','name','alat_id','status','catatan','image']));
    $user->catatan = $request->catatan;
    $user->image=$data;
    $user->status = $request->status;


    $user->save();
  // dd($user);
    return redirect('user/show6')->with('success', 'Data Telah Terinput');

}

this image "name" saved on DB but this file not saved , cant someone correct my code ?

26 Apr
2 months ago

adhik13th left a reply on How To Add Foreign Key On Not Id (NOT Primary Key)

@CHIJIPON - its need add to at parents table on No_RM ?

adhik13th started a new conversation How To Add Foreign Key On Not Id (NOT Primary Key)

I have a migration on Laravel for table pasien like this :

public function up()
{
    Schema::create('pasien', function (Blueprint $table) {
        $table->bigIncrements('id');
        $table->string('No_RM',15);
        $table->timestamps();
        $table->softDeletes();
    });
}

and now i want to make a foreign key to No_RM , NOT to id

public function up()
{
    Schema::create('data_primary', function (Blueprint $table) {
        $table->bigIncrements('id');
        $table->string('RM_id',15);
        $table->string('file_primary');
        $table->timestamps();

        $table->foreign('RM_id')->references('No_RM')->on('pasien');
    });
}

and still have error

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unsigned not null, file_primary varchar(255) not null, created_at timestamp ' at line 1")

can someone correct my error ?

18 Apr
3 months ago

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - i think i need to save $data in this

$user->pertanyaan =json_encode($request->except (['_token','name','alat_id','status','catatan']));

but how ?

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - emm i think i save json because i can decode it with any item on colomn 'pertanyaan'

u know sir , if i not use enctype="multipart/form-data" this image can saved on db like this "image":"img.jpg" (i want this) BUT not saved at directory

if i using enctype="multipart/form-data" , this image saved on directory but in database just like this "image":{}

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SIANGBOON - how to extract this $data on my controller ? my image saved in $data and different json saved at $request

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - how i can saved this $data to my colomn "pertanyaan" on my controller like this

'$user = new pemeliharaan;
$id = Auth::user()->id;

$user->user_id = $id;
$user->alat_id = $request->alat_id;
$user->pertanyaan =json_encode($request->except
(['_token','name','alat_id','status','catatan']));//this image on here , how i can save on here ?
$user->catatan = $request->catatan;
$user->status = $request->status;


$user->save(); '

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - 1.

          <td>
              <label><input type="radio"  name="answer1" value="tidak baik" checked></label>
          </td>
          <td>
              <label><input type="radio"  name="answer1" value="baik"></label>
          </td>
        </tr>
       
            <tr>
                <td></td>
                <td> <input class="form-control" style="border:none"  type="file" name="image" value="" > </td>
               
            </tr>
       
        </div>
      
       
        <tr>
            <td></td>
            <td> <div class="form-group">
                <label>Catatan</label>
                <textarea class="form-control" name="catatan" rows="3" placeholder="Enter ..." required></textarea>
             </div>
         
        </tr>

        
    <input type="hidden" name="alat_id" value="7">
    <input type="hidden" name="status"  value="3 Bulanan">             
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    
  </tbody>
 
</table>
      <div class="box-footer">
        <button type="submit" class="btn btn-primary" name="name" value="post">Submit</button>
       </div>
</form>

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - ` 1. {{-- --}}

          <td>
              <label><input type="radio"  name="answer1" value="tidak baik" checked></label>
          </td>
          <td>
              <label><input type="radio"  name="answer1" value="baik"></label>
          </td>
        </tr>
       
            <tr>
                <td></td>
                <td> <input class="form-control" style="border:none"  type="file" name="image" value="" > </td>
               
            </tr>
       
        </div>
      
       
        <tr>
            <td></td>
            <td> <div class="form-group">
                <label>Catatan</label>
                <textarea class="form-control" name="catatan" rows="3" placeholder="Enter ..." required></textarea>
             </div>
         
        </tr>

        
    <input type="hidden" name="alat_id" value="7">
    <input type="hidden" name="status"  value="3 Bulanan">             
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    
  </tbody>
 
</table>
      <div class="box-footer">
        <button type="submit" class="btn btn-primary" name="name" value="post">Submit</button>
       </div>
</form> `

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - Pertanyaan Tidak Baik Baik

    <div class="form-group">
        <tr>
          <td>1.</td>
          <td><input class="form-control" style="border:none"   type="text" name="question1" value="Kondisi, kebersihan, pelumasan bearing" readonly></td>
          {{--  <td><input class="form-control" type="text" placeholder=".input-lg"></td>  --}}
          
          <td>
              <label><input type="radio"  name="answer1" value="tidak baik" checked></label>
          </td>
          <td>
              <label><input type="radio"  name="answer1" value="baik"></label>
          </td>
        </tr>
       
            <tr>
                <td></td>
                <td> <input class="form-control" style="border:none"  type="file" name="image" value="" > </td>
               
            </tr>
       
        </div>
      
       
        <tr>
            <td></td>
            <td> <div class="form-group">
                <label>Catatan</label>
                <textarea class="form-control" name="catatan" rows="3" placeholder="Enter ..." required></textarea>
             </div>
         
        </tr>

        
    <input type="hidden" name="alat_id" value="7">
    <input type="hidden" name="status"  value="3 Bulanan">             
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    
  </tbody>
 
</table>
      <div class="box-footer">
        <button type="submit" class="btn btn-primary" name="name" value="post">Submit</button>
       </div>
</form>

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - ``` # Pertanyaan Tidak Baik Baik

    <div class="form-group">
        <tr>
          <td>1.</td>
          <td><input class="form-control" style="border:none"   type="text" name="question1" value="Kondisi, kebersihan, pelumasan bearing" readonly></td>
          {{--  <td><input class="form-control" type="text" placeholder=".input-lg"></td>  --}}
          
          <td>
              <label><input type="radio"  name="answer1" value="tidak baik" checked></label>
          </td>
          <td>
              <label><input type="radio"  name="answer1" value="baik"></label>
          </td>
        </tr>
       
            <tr>
                <td></td>
                <td> <input class="form-control" style="border:none"  type="file" name="image" value="" > </td>
               
            </tr>
       
        </div>
      
       
        <tr>
            <td></td>
            <td> <div class="form-group">
                <label>Catatan</label>
                <textarea class="form-control" name="catatan" rows="3" placeholder="Enter ..." required></textarea>
             </div>
         
        </tr>

        
    <input type="hidden" name="alat_id" value="7">
    <input type="hidden" name="status"  value="3 Bulanan">             
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    
  </tbody>
 
</table>
      <div class="box-footer">
        <button type="submit" class="btn btn-primary" name="name" value="post">Submit</button>
       </div>
</form>```

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

@SNAPEY - # Pertanyaan Tidak Baik Baik

    <div class="form-group">
        <tr>
          <td>1.</td>
          <td><input class="form-control" style="border:none"   type="text" name="question1" value="Kondisi, kebersihan, pelumasan bearing" readonly></td>
          {{--  <td><input class="form-control" type="text" placeholder=".input-lg"></td>  --}}
          
          <td>
              <label><input type="radio"  name="answer1" value="tidak baik" checked></label>
          </td>
          <td>
              <label><input type="radio"  name="answer1" value="baik"></label>
          </td>
        </tr>
       
            <tr>
                <td></td>
                <td> <input class="form-control" style="border:none"  type="file" name="image" value="" > </td>
               
            </tr>
       
        </div>
      
       
        <tr>
            <td></td>
            <td> <div class="form-group">
                <label>Catatan</label>
                <textarea class="form-control" name="catatan" rows="3" placeholder="Enter ..." required></textarea>
             </div>
         
        </tr>

        
    <input type="hidden" name="alat_id" value="7">
    <input type="hidden" name="status"  value="3 Bulanan">             
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
    
  </tbody>
 
</table>
      <div class="box-footer">
        <button type="submit" class="btn btn-primary" name="name" value="post">Submit</button>
       </div>
</form>

adhik13th left a reply on How To Save Upload Image To Directory In Laravel 5.8

i can add "<form method , encypte,action> at this comment