Upload

There are three ways to upload files using Larupload:

  • Upload by mutator

  • Upload by the attach function

  • Upload using the create method of the model

This is the easiest way to upload a file. You can upload a file by assigning the file to a property of your model.

It is advising that when uploading a file using Larupload, the corresponding property must be defined in the attachments method of the model.

$upload = new Upload;
$upload->file = $request->file('file');
$upload->save();

Last updated