text
stringlengths
2
1.03M
<?php namespace net\authorize\api\contract\v1; /** * Class representing GetHostedProfilePageRequest */ class GetHostedProfilePageRequest extends ANetApiRequestType { /** * @property string $customerProfileId */ private $customerProfileId = null; /** * Allowed values for settingName are:...
<?php return [ 'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=inmobiliaria', 'username' => 'root', 'password' => '', 'charset' => 'utf8', ], 'mailer' => [ 'class' => 'yi...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Model; use Faker\Generator as Faker; $factory->define(\App\Store::class, function (Faker $faker) { return [ //'name'=>$faker->name, 'name'=>$faker->company, 'description'=>$faker->sentence, ...
<script> @if ($model->list->activatable) @if (cms_auth()->can("{$permissionPrefix}edit")) $('.activate-toggle').click(function() { var id = $(this).attr('data-id'), state = !! parseInt($(this).attr('data-active'), 10), url = '{{ c...
<?php namespace App\Http\Controllers; use App\RouteStops; use App\Routes; use App\Http\Controllers\Controller; use cURL; use DB; class AjaxController extends Controller { private $apiPath = 'http://localhost/cloudcart/public/api/v1.1/routes/search/'; public function findRoutes() { if (isset($_POS...
<div class="col-md-12"> <footer class="footer"> <small class="slogon"> <img class="brand-icon" src="https://lccdn.phphub.org/uploads/images/201612/12/1/iq7WQc2iuW.png?imageView2/1/w/34/h/34"> <a href="https://laravel-china.org/courses"> 刻意练习,每日精进 </a> ...
<!-- Vista de Legajos Activos --> @extends('layouts.app') @section('content') @if($agregar == true) <form method="post" action="{{ url('/bajas/add') }}" enctype="multipart/form-data"> @else <form method="post" action="{{ url('/bajas/edit/'.$legajo->id) }}" enctype="multipart/form-data"> @endif {{ csrf_field...
<?php namespace App\Http\Controllers; use App\Models\City; use App\Models\Classes; use App\Models\Student; use App\Models\Teacher; use Illuminate\Http\Request; class StudentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ pu...
<?php $this->load->helper('url'); $link_edit = 'admin/ai_unit/'; $link_new = 'admin/ai_unit'; $link_back = 'admin/admin_panel'; ?> <div class="back"> <a href="<?=site_url($link_back); ?>"><--- Back</a> </div> <div class="top_menu"> <a href="<?=site_url($link_new); ?>">Create New</a> </div> <div class="list_container...
<?php namespace app\models; class PostLike extends \app\core\Model { public $post_like_id; public $user_id; public $profile_post_id; // the constructor public function __construct() { parent::__construct(); } // Add likes public function addLike($profile_post_id) { $...
<?php namespace app\member\controller\api; use app\ApiController; use think\Db; use app\member\model\AccountLogModel; use app\member\model\AccountModel; use app\member\model\RechargeLogModel; use app\mainadmin\model\PaymentModel; use app\distribution\model\DividendModel; use app\member\model\TransferLogModel; /*----...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/Piece for the canonical source repository * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespac...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Http\Requests\Admin\ChangeUserDataRequest; use App\User; use Illuminate\Support\Facades\Auth; class UserController extends Controller { public function index() { $users = User::paginate('50'); return vie...
<?PHP /** * PM * * @package Cotonti * @version 0.0.6 * @author Neocrome, Cotonti Team * @copyright Copyright (c) Cotonti Team 2008-2009 * @license BSD */ defined('SED_CODE') or die('Wrong URL'); list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('pm', 'a'); sed_block($usr['auth_read']); ...
<?php /** * Archive front-page * * @package ApollonFrontendTheme * @author Achraf Chouk <achrafchouk@gmail.com> * @since 0.0.1 */ if (!defined('ABSPATH')) { die('You are not authorized to directly access to this page'); } $_archive = [ 'sidebar' => 'page', 'subtitle' => '', 'templa...
<div class="nodes promoted"> <?php if (count($nodes) == 0) { __('No items found.'); } else { foreach ($this->params['named'] AS $nn => $nv) { $this->Paginator->options['url'][$nn] = $nv; } } ?> <?php foreach ($nodes AS $node) { $this->Layout->setN...
<h2>You have succeded </h2>
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <!-- Script Pdf --> <script type="text/javascript"> function del(num) { swal({ title: "ยืนยันการลบ", text: "คุณแน่ใจแล้วหรือ ที่จะลบ id " + num + " ?", icon: "warning", ...
<?php namespace Drupal\Tests\filter\Kernel; use Drupal\KernelTests\KernelTestBase; use Drupal\filter\Entity\FilterFormat; /** * Tests filter settings. * * @group filter */ class FilterSettingsTest extends KernelTestBase { /** * Modules to enable. * * @var array */ public static $modules = ['filt...
<?php $username = $_POST['username']; $password = $_POST['password']; $success = array('msg'=>'ok'); $con = mysqli_connect('localhost','root','','lixdb'); if($con){ mysqli_query($con,'set names utf8'); mysqli_query($con,'set character_set_client=utf8'); mysqli_query($con,'set...
<?php /** * @file * Contains \Drupal\Console\Generator\ModuleGenerator. */ namespace Drupal\Console\Generator; /** * Class ModuleGenerator * @package Drupal\Console\Generator */ class ModuleGenerator extends Generator { /** * @param $module * @param $machineName * @param $dir * @param $...
<div class="blogStyles view"> <h2><?php echo __('Blog Style'); ?></h2> <dl> <dt><?php echo __('Id'); ?></dt> <dd> <?php echo h($blogStyle['BlogStyle']['id']); ?> &nbsp; </dd> <dt><?php echo __('Block'); ?></dt> <dd> <?php echo $this->Html->link($blogStyle['Block']['title'], array('controller' => 'bl...
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class SertifikatController extends Controller { // }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Data extends Model { protected $guarded = ['id']; }
<?php declare(strict_types=1); namespace Shopware\Core\Framework\DataAbstractionLayer\Dbal; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Exception; use Doctrine\DBAL\FetchMode; use Doctrine\DBAL\Query\QueryBuilder as DbalQueryBuilderAlias; use Doctrine\DBAL\Types\Types; use Shopware\Core\Framework\DataAbstractionL...
<?php declare (strict_types=1); namespace RectorPrefix20211123\Helmich\TypoScriptParser\Tokenizer; /** * Helper class for building tokens that span multiple lines. * * Examples are multi-line comments or "("-assignments. * * @package Helmich\TypoScriptParser * @subpackage Tokenizer */ class MultilineTokenBu...
<?php namespace Database\Factories; use App\Models\Report; use App\Models\Category; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Str; class ReportFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string *...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Tmpsales1record * * @property $id * @property $T_MP_Zsales1_Num * @property $T_MP_Zsales1_Ubic_Cod * @property $T_MP_Zsales1_Prod_Ref * @property $T_MP_Zsales1_Piezas * @property $T_MP_Zsales1_Cant_x_Pieza * @property $T_MP_Zsal...
<?php declare(strict_types=1); namespace App\Service\Middleware\Binary; use App\Service\ApplicationContext; use App\Service\Middleware\Database; use App\Service\Wrapper\ProcessFactory; use App\ValueObject\EnvironmentEntity; class Docker { public function __construct( private ApplicationContext $applicat...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use DB,Cache,Mail; use Cart; use App\Bill; class PostOrderController extends Controller { public function __construct(){ $setting = DB::table('setting')->select()->where('id',1)->get()->first(); Cache::forever('setting', $setting); ...
<?php use Illuminate\Database\Migrations\Migration; class SocialUserFields extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('rulers', function ($table) { $table->string('social_provider')->nullable(); ...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}" /> <title>Orgen</title> <link href="https://fo...
<?php namespace VK\Actions; use VK\Actions\Enums\NotesSort; use VK\Client\VKApiRequest; use VK\Exceptions\Api\VKApiAccessCommentException; use VK\Exceptions\Api\VKApiAccessNoteCommentException; use VK\Exceptions\Api\VKApiAccessNoteException; use VK\Exceptions\Api\VKApiParamNoteIdException; use VK\Exceptions\VKApiExcep...
<?php use App\Http\Controllers\ProductController; $total= ProductController::cartItem(); // $tot_cost = ProductController::cartcalc(); $delivery_cost=0; ?> @extends('layout') @push('styles') <link href="{{ asset('css/styles_categories.css') }}" rel="stylesheet"> <link href="{{ asset('css/styles_cart.css') }}...
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware =...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>My Page</title> </head> <body> <h1>{{ $batch->title }}</h1> <div class="comments"> @foreach ($batch->entries as $entry) <article> {{ $entry->body }} </article> @endforeach howdy </div> </bo...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ModelCliente extends Model { protected $table="clientes"; protected $primaryKey="id_cliente"; }
<?php namespace protecno\escuelaBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class buscarEmpleadosType extends AbstractType { /** * @param FormBuilderInterface $builder * @param...
<?php /** * This file is part of the Fy\Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Fy\Carbon\Exceptions; use Exception; class BadComparisonUnitException ext...
<!DOCTYPE html> <html> <head> <meta name="viewport" charset="utf-8" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anony...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css" rel="style...
<?php namespace LaravelTrello; use Illuminate\Support\ServiceProvider; class TrelloServiceProvider extends ServiceProvider { public function boot(): void { $this->publishes([ __DIR__.'/../config/trello.php' => config_path('trello.php') ]); } public function register(): vo...
<?php /** * Latest News module * * @package sixheads **/ $title = get_sub_field('section_title'); $showNews = get_sub_field('show_news'); $spacing = get_sub_field('spacing'); ?> <?php if ($showNews) { ?> <div class="latest-news module-spacing--<?php echo $spacing; ?>"> <div class="wrapper--inner"> <h2...
<?php /** * Created by LazyCrud - @DyanGalih <dyan.galih@gmail.com> */ namespace App\Services; use App\Services\AdsEventServiceTrait; use App\Services\AdsOrderDetailServiceTrait; use App\Services\AdsOrderServiceTrait; use App\Services\SecurityLevelServiceTrait; /** * @author: * Date: 14:03:56 * Time: 2021/11/0...
<?php namespace App\Http\Requests; use App\Traits\Response; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\Exceptions\HttpResponseException; use Illuminate\Http\Response as HTTPResponse; class ReservationRequest extends FormRequest { use Response; ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHostelsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('hostels', funct...
<?php namespace Urbem\CoreBundle\Entity\Folhapagamento; /** * ConfiguracaoEmpenhoEvento */ class ConfiguracaoEmpenhoEvento { /** * PK * @var string */ private $exercicio; /** * PK * @var integer */ private $codConfiguracao; /** * PK * @var integer ...
<?php $lang["customers_account_number"] = "Cuenta #"; $lang["customers_account_number_duplicate"] = "El Número de Cuenta ya se encuentra en la base de datos."; $lang["customers_available_points"] = "Puntos Disponibles"; $lang["customers_average"] = "Gasto Promedio"; $lang["customers_avg_discount"] = "Descuento Promed...
<div class="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <h3>Manage Department</h3> <hr> <div class="card mb-3"> <div class="card-header"> <button class="btn btn-success add-btn" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="A...
@extends('layouts.app') @section('main-content') <div class="page-wrapper"> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row"> <div class="col-sm-12"> <h3 class="page-tit...
30 mtime=1556800926.517387311 24 SCHILY.fflags=extent
@extends('layouts.site') @section('content') <section class="content-wrapper"> <div class="container"> <div class="row"> <div class="col-md-9"> <div class="news-list"> @foreach($news as $item) <div class="post"> <d...
<?php declare(strict_types=1); namespace BunnyPHP; class Filter { const NEXT = 0; const STOP = 1; protected array $_variables = []; public function __get($name) { if ($name === '_mode') return BUNNY_APP_MODE; return null; } public function doFilter($param = []): int {...
@extends("admin.master") @section("title","Reply | PN-Education") @section("content") <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> ...
<?php /********************************************************************************************************************** * phpLINQ (https://github.com/mkloubert/phpLINQ) * * ...
<?php /** * Genesis Framework. * * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. * Please do all modifications in the form of a child theme. * * @package Genesis\Admin * @author StudioPress * @license GPL-2.0-or-later * @link https://my.studiopress...
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Dashboard') }}</div> <h1>semester--- page</h1> ...
<?php namespace app\models; use Yii; use common\models\User; /** * This is the model class for table "customer". * * @property int $id * @property string $nama * @property string $email * @property int $user_id * * @property User $user * @property Order[] $orders */ class Customer extends \yii\db\ActiveRec...
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Tax\Test\Unit\Model\TaxClass\Type; class CustomerTest extends \PHPUnit_Framework_TestCase { public function testIsAssignedToObjects() { $objectManagerHelper = new \Magento...
<?php namespace RectorPrefix20210701\TYPO3\CMS\Core\Site\Entity; if (\class_exists('TYPO3\\CMS\\Core\\Site\\Entity\\SiteLanguage')) { return; } class SiteLanguage { /** * @return string */ public function getTwoLetterIsoCode() { return 'ch'; } }
<?php /** * @desc 分页类 * @author: ZhaoYang * @date: 2018年7月20日 下午10:07:11 * <pre> * use Library\Tools\Paginator; * 方法1: * $paginator1 = new Paginator(100); echo $paginator1->show(); 方法2: $config2 = [ 'page' => 'p', 'pagePattern' => '/([\/&?]p[\/=])([\d]+)/', 'prevTheme' => '<...
<?php declare(strict_types=1); namespace Tumugin\Stannum\Test\SnString; use PHPUnit\Framework\TestCase; use Tumugin\Stannum\SnString; class ReplaceTest extends TestCase { /** * @dataProvider provideStrings */ public function testWithStrings( string $testString, string $searchString...
<?php namespace app\commands; use Yii; use yii\console\Controller; class RbacController extends Controller { public function actionInit() { $auth = Yii::$app->authManager; // 清空原权限配置 $auth->removeAll(); /* -------------创建权限开始----------- */ // user增删改查 $createUser = $auth->createPerm...
<?php final class ReleephDiffChurnFieldSpecification extends ReleephFieldSpecification { const REJECTIONS_WEIGHT = 30; const COMMENTS_WEIGHT = 7; const UPDATES_WEIGHT = 10; const MAX_POINTS = 100; public function getFieldKey() { return 'churn'; } public function getName() { r...
<div class="page-header"> <h1>Daftar Pembelian</h1> </div> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>No.</th> <th>Tanggal Pembelian</th> <th>Supplier</th> <th>Total Harga Pembelian</th> <th>Total Jumlah Obat</th> <th>Status Pembelian</th> <th><...
<?php use OntraportAPI\Ontraport; use OntraportAPI\Tests\Mock\MockCurlClient; use PHPUnit\Framework\TestCase; class TasksTest extends TestCase { function testAssign() { $mock_curl = new MockCurlClient(); $client = new Ontraport("2_AppID_12345678", "Key5678", $mock_curl); $requestPara...
<?php var_dump(php_sapi_name());
<?php namespace Chamilo\Core\Repository\Workspace\Service; use Chamilo\Core\Group\Storage\DataClass\Group; use Chamilo\Core\Rights\Entity\PlatformGroupEntity; use Chamilo\Core\Rights\Entity\UserEntity; use Chamilo\Core\User\Storage\DataClass\User; /** * * @package Chamilo\Core\Repository\Workspace\Service * @autho...
<?php namespace berthott\Permissions; use berthott\Permissions\Helpers\PermissionsHelper; use berthott\Permissions\Http\Controllers\PermissionController; use berthott\Permissions\Http\Middleware\CheckPermissions; use berthott\Permissions\Services\IgnorePermissionRoutesService; use Illuminate\Routing\Router; use Illum...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Series; use Faker\Generator as Faker; $factory->define(Series::class, function (Faker $faker) { return [ 'name' => $faker->sentence(2), 'subtitle' => $faker->sentence(6), 'status' => $faker->randomElement(['in_progre...
@extends('layouts.app') @section('content') <form class="col-6" method="POST" action="{{route('account.update',['id'=>$account->id])}}"> @csrf <div class="form-group"> <label for="exampleFormControlSelect2">Type of Account</label> <select class="form-control" name="type_of_account" > <option value="" dis...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Templating; use Symfony\Component\Templating\Template...
<?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use DB; use App\Models\m_users; // use App\Models\m_loc_kota; use App\Models\m_klien; // use App\Models\m_material; // use App\Models\m_typeqty; // use App\Models\m_category_reason; // use App\Models\m_cabang;...
<?php /* * Copyright 2004-2015, AfterLogic Corp. * Licensed under AGPLv3 license or AfterLogic license * if commercial version of the product was purchased. * See the LICENSE file for a full license statement. */ namespace MailSo\Base\Exceptions; /** * @category MailSo * @package Base * @subpackage Exception...
<?php namespace App\Models; use \DateTimeInterface; use App\Traits\Auditable; use App\Traits\MultiTenantModelTrait; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Componente extends Model { use SoftDeletes; us...
<?php /* * This file was created by developers working at BitBag * Do you need more information about us and what we do? Visit our https://bitbag.io website! * We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career */ declare...
<?php //Hook Widget add_action( 'widgets_init', 'spotify_master_widget_buttons' ); //Register Widget function spotify_master_widget_buttons() { register_widget( 'spotify_master_widget_buttons' ); } class spotify_master_widget_buttons extends WP_Widget { function __construct(){ $widget_ops = array( 'classname' => 'Sp...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class TinTuc extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('TinTuc',function(Blueprint ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class App extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'App'; }
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php include 'common.php'; $item_id=$_GET['id']; $b=$_SESSION['user_id']; $q="insert into users_items(user_id,item_id,status) values('$b','$item_id','added to cart')"; $query=mysqli_query($con,$q)or die(mysqli_error($con)); header('location:product.php'); ?>
<?php namespace App\Entities; use Illuminate\Database\Eloquent\Model; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; /** * Class Balance. * * @package namespace App\Entities; */ class Balance extends Model implements Transformable { use TransformableTrait; ...
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://doc.hyperf.io * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Di\LazyLoader; use Hyperf\Utils\Coroutine\Locker as CoLocker; ...
<?php /* * This file is part of sebastian/diff. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Diff\LCS; /** * Memory-efficient implementation of lon...
@extends('layouts.layout') @section('content') <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mt-6 bg-light"> <div class="flex flex-col md:flex-row -mx-4"> <div class="md:flex-1 px-4"> <img src="/storage/photo/product/{{$product->main_photo}}" alt="" width="250px" height="250px" class="float-le...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Product extends Model { use HasFactory; protected $fillable = [ 'name', 'phone', 'address', 'age', ]; }
<?php require_once __DIR__ . '/vendor/autoload.php'; use GO\Scheduler; use Symfony\Component\Yaml\Yaml; use viktigpetterr\Bellan\Lunchtime; $config = Yaml::parse(file_get_contents(__DIR__ . '/bellan.yaml')); $days = $config['DAYS']; $postAt = $config['POST_AT']; $timeZone = $config['TIME_ZONE']; date_default_timezon...
<?php namespace App\Entity; use App\Repository\EmOccProduitV2Repository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=EmOccProduitV2Repository::class) */ class EmOccProduitV2 { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; ...
<?php namespace Home\Controller; use Think\Controller; class IndexController extends Controller { public function index(){ // $this->show('<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: "微软雅黑"; color: #333;font-size:24px} h1{ font-size: 100px;...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTvItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tv_items', func...
@extends('emails.template') @section('content') <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" style="font-family:Verdana, Geneva, sans-serif; font-size:12px; text-align:left"> <tr><td>&nbsp;</td></tr> <tr> <td align="center"> <table border="0" width="100%"> ...
<!-- Select2 --> <link rel="stylesheet" href="<?=base_url('asset/backend/')?>plugins/select2/css/select2.min.css"> <link rel="stylesheet" href="<?=base_url('asset/backend/')?>plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css"> <script src="<?=base_url('asset/backend/')?>plugins/select2/js/select2.full.m...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\Post; use App\Comment; use App\VisitorCount; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; class HomeController extends Controller { /** * Create a new controller instance. ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Storage; class Setting extends Model { use HasFactory; protected $fillable = ['facebook', 'instagram', 'youtube', 'zalo', 'email','name_vi', 'name...
<?php namespace App\Controllers; use App\Controllers\BaseController; use App\Models\DeviceDetails; use App\Models\Devices; class Devicedetailscontroller extends BaseController { protected $model; protected $db; public function __construct() { $this->model[0] = new DeviceDetails(); $t...
<?php namespace AOC\Bingo; require __DIR__ . '/vendor/autoload.php'; $lines = preg_split('/(\n\s*\n)+/', file_get_contents(__DIR__ . '/input.txt')); $drawnNumbers = explode(',', $lines[0]); unset($lines[0]); $grids = array_map(fn($line) => new BingoGrid($line), $lines); try { foreach ($drawnNumbers as $number...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<div id="wrapper"> <div class="main-content"> <div class="row small-spacing"> <div class="col-xs-6"> <h4 class="box-title"> <a href="<?= base_url() ?>JasaKustom/tambah" class="btn btn-primary btn-bordered waves-effect waves-light btn-sm"><i class="fa fa...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Traits\UuidTrait; class Category extends Model { use SoftDeletes, UuidTrait; /** * Indicates if the IDs are auto-incrementing. * * @var bool */ public $incrementing = fa...