This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Artist { | |
constructor( | |
public name: string, | |
public age: number, | |
public style: string, | |
public location: string, | |
) { | |
// base logic | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App\Models; | |
use DB; | |
use Illuminate\Database\Eloquent\Model as BaseModel; | |
abstract class Model extends BaseModel | |
{ | |
static $automaticCasts = []; | |
public function __construct(array $attributes = []) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import component from './component' | |
export default component({ | |
name: 'form', | |
template: ` | |
<div> | |
<div> | |
<slot name="header"><h2>{{ title }}</h2></slot> | |
</div> | |
<div> |