Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
firstmatrixcoin
public_html
ocean-arc.firstmatrix.co.in
plugins
sparkline
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php namespace App; use Illuminate\Database\Eloquent\Model; class InvoiceScheme extends Model { /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; /** * Returns list of invoice schemes in array format */ public static function forDropdown($business_id) { $dropdown = InvoiceScheme::where('business_id', $business_id) ->pluck('name', 'id'); return $dropdown; } /** * Retrieves the default invoice scheme */ public static function getDefault($business_id) { $default = InvoiceScheme::where('business_id', $business_id) ->where('is_default', 1) ->first(); return $default; } }
Free Space : 11960545280 Byte