Answers for "how to change with name in laravel"

PHP
12

laravel rename column name

Schema::table('users', function (Blueprint $table) {
    $table->renameColumn('from', 'to');
});
Posted by: Guest on April-24-2020
0

->store() laravel change name

public function saveFile(Request $request) {
    $md5Name = md5_file($request->file('your_input_name')->getRealPath());
    $guessExtension = $request->file('your_input_name')->guessExtension();
    $file = $request->file('your_input_name')->storeAs('your_path', $md5Name.'.'.$guessExtension  ,'your_disk');
}
Posted by: Guest on January-22-2021

Code answers related to "how to change with name in laravel"

Browse Popular Code Answers by Language