Support the ongoing development of Laravel.io →
posted 7 years ago
Last updated 2 years ago.
0

now you should be able to inject your class in to the controller like so

public function __construct(\App\Server\MedicineDosageEntry $entry){
    
    $this->entry = $entry;

}

public function storeData(Request $request) {

    $data = $request::get('data');

    $this->entry->storeData($data);
}
Last updated 7 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

finger finger Joined 23 Jan 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.