You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Illuminate\Foundation\Bus\DispatchesJobs;use Illuminate\Foundation\Validation\ValidatesRequests;use App\Http\Controllers\Controller as BaseController;use Illuminate\Support\Facades\Storage;use App\Models\FinancialRecord;
class TestController extends BaseController{ public function Test(){ $ret = null;
// dump(FinancialRecord::where('id',1));
// $ret = FinancialRecord::getFinancialRecordModel(1);
// $s = $ret::where('id',1)->first();
// dump($s);
// $ret = FinancialRecord::getFinancialRecordModel(2);
// $s = $ret::where('id',1)->first();
// dump($s);
// $ret = FinancialRecord::getFinancialRecordModel(3);
// $s = $ret::where('id',1)->first();
// dump($s);
// $ret = FinancialRecord::getFinancialRecordModel(4);
// $s = $ret::where('id',1)->first();
// dump($s);
$ret = FinancialRecord::getFinancialRecordModel(5); $s = $ret::where('id',1)->first(); dump($s);
return 1; }}
|