text
stringlengths
2
1.03M
<?php namespace Jaeger\Thrift\Agent; /** * Autogenerated by Thrift Compiler (1.0.0-dev) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ use Thrift\Base\TBase; use Thrift\Type\TType; use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolEx...
<?php namespace App\Http\Requests\Api; use Dingo\Api\Http\FormRequest; class ImageRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validati...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\CajaCompensacion */ $this->title = 'Nuevo Caja Compensacion'; $this->params['breadcrumbs'][] = ['label' => 'Cajas de Compensacion', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="tipo-documento-cr...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddDescriptionFieldToDistributorsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::tab...
@if(Request::is('/')) @include('inc.showcase') @endif <div class="row"> @if(count($errors) > 0) @foreach($errors->all() as $error) <div class="alert alert-danger"> {{$error}} </div> @endfo...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\Controller; class AuthController extends Controller { /** * Create a new AuthController instance. * * @return void */ public function __construct() { $this->middleware('auth:api...
<?php get_header(); ?> <main id="about"> <div class="main-visual"> <div class="page-container"> <h2 class="top-title font-70"> About </h2> <p class="font-16">Recent News Posts</p> </div> </div> <div class="page-container"> <div cla...
@extends('parent') @section('main') @if($errors->any()) <div class="alert alert-danger"> <ul> @foreach($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div align="right"> <a href="{{ route('crud.index') }}" class="btn btn-default">Voltar</a> </div> <form method="p...
<?php namespace denbora\R_T_G_Services\examples\RESTv3\Vig; use denbora\R_T_G_Services\examples\RESTv3\RestExample; class HandleMessagePOST extends RestExample { }
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\Storage; use App\Project; use App\Task; use App\User; class ProjectFileUploadTest extends TestCase { ...
<?php /** * This file is part of Poloniex PHP SDK. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2017-2018 Chasovskih Grisha <chasovskihgrisha@gmail.com> * @license https://github.com/signulls/poloniex-php-sdk/blob/ma...
<?php error_reporting(E_ALL); set_time_limit(0); date_default_timezone_set('Europe/London'); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>PhpSpreadsheet Reader Example #17</title> </head> <body> <h1>PhpSpreadsheet Reader Example #17</h1> <h2>Simple File Reader Load...
<?php if(!defined('SYSTEM')) die('no access'); ?> <USE_DEFAULT/>
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Shortner extends Model { protected $table = 'shortners'; public $timestamps = false; protected $fillable = [ 'url_short', 'url_original' ]; public static function isLinkAlreadyExistsInDB($link) { $re...
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\MediaBundle\Command; ...
<?php //upload.php $base_url = 'https://2urkeymenu.com/public/'; $rand=rand(1,9999); if (isset($_POST["image"])) { $data = $_POST["image"]; $image_array_1 = explode(";", $data); $image_array_2 = explode(",", $image_array_1[1]); $data = base64_decode($image_array_2[1]); $imageName = ((isset($_GET...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class loan_employment_history extends Model { // protected $table = 'loan_application_employment_history'; // Mass assignable fields protected $fillable = [ 'employer', 'emp_address', 'emp_tel', 'emp_years', 'spouse_emp_years', 'spouse_em...
<?php namespace backend\grid; use Yii; use yii\base\InvalidConfigException; use yii\base\Widget; use yii\helpers\Url; class GridBulkActions extends Widget { /** * @var array */ public $actions; /** * @var string */ public $controller; /** * @var string */ public ...
<footer class="footer"> <div class="container"> <div class="footer__wrapper"> <div class="footer__wrapper__details"> <div class="footer__wrapper__details__logo"> <a href="<?php echo site_url('/') ?>"> <img src="https://spcms.frontlinebusiness.com.ph/wp-c...
<?php /** * Author: Alexey kavshirko@gmail.com * Date: 23.07.12 * Time: 23:07 */ $module = (isset(Yii::app()->getController()->module))? Yii::app()->getController()->module->getName() : ''; $controller = Yii::app()->getController()->getId(); $action = Yii::app()->getController()->getAction()->getId(); if(!Yii::app...
<?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\Yaml\Tests; use Symfony\Component\Yaml\Inline; use Sy...
<?php /** @var array $data */ ?> <h1>Relatórios de contas</h1> <?php foreach ($data as $date => $bills): ?> <h2><?= $date ?></h2> <table class="table table-striped table-bordered"> <thead> <tr> <td>Data</td> <td>Descrição</td> <td>Valor</...
<?php namespace Grixu\DataFactories\Tests\Helpers; use Grixu\DataFactories\Factory; class TypicalFactory extends Factory { public function create(array $parameters = []): array { return $parameters; } }
<!doctype html> <html class="no-js" lang="zxx"> <head> <meta charset="utf-8"> <meta name="author" content="John Doe"> <meta name="description" content=""> <meta name="keywords" content="HTML,CSS,XML,JavaScript"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content...
<?php /* * This file is part of the Kimai time-tracking app. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Tests\DependencyInjection; use App\DependencyInjection\Configuration; use PHPUnit\Framework\TestCase; use S...
<?php namespace Twig\TokenParser; require __DIR__.'/../../lib/Twig/TokenParser/Macro.php'; if (\false) { class MacroTokenParser extends \Twig_TokenParser_Macro { } }
<?php /** * Created by IntelliJ IDEA. * User: Administrator * Date: 2019/4/28 * Time: 1:07 */ namespace app\admin\controller; namespace app\admin\controller; use app\admin\model\CardRecord; use app\admin\model\Cards; use app\admin\model\ForwardUrl; use app\admin\model\RemoteFunction; use app\admin\model\SoftList...
<script src="<?php echo base_url().'templates/admin_lte/';?>plugins/jQuery/jquery-2.2.3.min.js"></script> <script src="<?php echo base_url().'templates/admin_lte/';?>plugins/jQueryUI/jquery-ui.min.js"></script> <script> $.widget.bridge('uibutton', $.ui.button); </script> <script src="<?php echo base_url().'templates/...
@extends('layouts.app') @section('content') <header class="mb-6 relative"> <img src="https://i.pinimg.com/originals/e8/3b/1c/e83b1c946b8a49ab36a3a5f771c3da7a.jpg" alt=""> <!-- ver como colocal dentro do diretorio do projeto --> <div class="flex justify-between items-center mb-6"> <div> ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class ArticleModel extends Model { use HasFactory; protected $table = 'posts'; protected $fillable = ['title','slug','body','featured_image']; }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class ReportList extends Model { /** * The attributes that are not mass assignable. * * @var array */ protected $guarded = []; /** * Indicates if the model should be timestamped. * * @var bool */ public $timestamps = false;...
<?php namespace Anax\HTMLForm; /** * Form to add answer * */ class CFormAnswerAdd extends \Mos\HTMLForm\CForm { use \Anax\DI\TInjectionaware, \Anax\MVC\TRedirectHelpers; private $pagekey; private $redirect; private $id; private $acronym; /** * Constructor * */ p...
<style> /* audio */ @import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap"); .add-bottom { margin-bottom:0rem !important; } .left { float:left; } .right { float:right; } .center { text-align:center; } .hidden { display:n...
<?php namespace App\Http\Requests\Front; use App\Http\Requests\Request; class JobFrontFormRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the val...
<?php class Klien_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_data($data) { $this->db->select('*'); if(!empty($data['id'])){ $this->db->where('id_klien', $data['id']); } if(!empty($data['kode...
<?php namespace app\laychatphone\controller; use think\Controller; use think\Db; class Useryuyue extends Base{ //个人中心我的预约 public function index(){ //登录用户名 $uName=$_COOKIE['phone_user_name']; //查询出该用户的预约信息 $useryuyueinfo = Db::table('nd_appo...
<?php namespace Waghron\Collections\Controller\Index; use Magento\Framework\App\Action\Action; class Index extends Action { /** * Execute view action */ public function execute() { echo 'test'; } }
@extends('layouts.index') @section('title') الصفحة الرئيسية @endsection @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">الصفحة الرئيسية</div> <div class="c...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Cviebrock\EloquentSluggable\Sluggable; class Tag extends Model { use Sluggable; protected $fillable = ['title']; public function posts() { return $this->belongsToMany( Post::class, 'post_tags', ...
<?php namespace App\Traits; use Illuminate\Support\Str; trait Uuid { /** * Boot function from Laravel. */ protected static function boot() { parent::boot(); static::creating(function ($model) { if (empty($model->{$model->getKeyName()})) { $model->{$mode...
<?php /** * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2020 * @package yii2-export * @version 1.4.1 */ namespace kartik\export; use DOMDocument; use kartik\mpdf\Pdf; use PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf; use PhpOffice\PhpSpreadsheet\Worksheet\PageSetup; use PhpOffice\PhpSpreadshee...
<?php namespace ACL\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CreateUserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
<section id="testimonials" class="ts-block text-center pb-5"> <div class="container"> <div class="ts-title"> <h2>Testimonials</h2> </div> <!--end ts-title--> <div class="row"> <div class="owl-carousel" data-owl-dots="1" data-owl-loop="3" data-animate="ts-fadeI...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Cache; use Intervention\Image\Facades\Image; use Illuminate\Http\Request; use App\Models\Post; class PostsController extends Controller { //to restrict to authenticated user public function __construct() { $this->middleware('aut...
<?php namespace app\models; use Yii; /** * This is the model class for table "{{%retur}}". * * @property int $id * @property int $faktur_id * @property string $created_at * @property string $updated_at * * @property SalesFaktur $faktur * @property ReturItem[] $returItems */ class Retur extends \yii\db\Acti...
<style> .error{color:red;} </style> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h3><?php ...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace Epartment\NovaDependencyContainer\Http\Controllers; use Epartment\NovaDependencyContainer\Http\Requests\ActionRequest; use Illuminate\Routing\Controller; use Laravel\Nova\Http\Requests\NovaRequest; class ActionController extends Controller { /** * List the actions for the given resource. * * ...
<?php namespace SilverStripe\Security\Tests\InheritedPermissionsTest; use SilverStripe\Core\Injector\Injector; use SilverStripe\Dev\TestOnly; use SilverStripe\ORM\DataObject; use SilverStripe\Security\InheritedPermissions; use SilverStripe\Security\InheritedPermissionsExtension; use SilverStripe\Security\PermissionCh...
<?php $lan = array( 'Your database is out of date, please make sure to upgrade' => 'Su base de datos no est&aacute; al d&iacute;a, por favor actual&iacute;cela', 'Your version' => 'Su versi&oacute;n', 'Latest version' => '&Uacute;ltima versi&oacute;n', 'phplist version' => 'Versi&oacute;n de <a href="http://...
<?php use PHPUnit\Framework\TestCase; /** * Class ActivityTest */ class ActivityTest extends TestCase { public static $config = [ 'url' => '', 'login' => '', 'password' => '', 'customerKey' => '', 'token' => '', ]; /** * @var iPresso */ private $cla...
<?php namespace App; use App\Events\ComponentCreated; use Illuminate\Database\Eloquent\Model; use Spatie\Sluggable\HasSlug; use Spatie\Sluggable\SlugOptions; use Spatie\Tags\HasTags; /** * App\Component * * @property \Illuminate\Database\Eloquent\Model|\Eloquent $author * @property \Illuminate\Database\Eloquent\...
<?php namespace BinBundle\Form; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; class replyType extends Abstrac...
<?php namespace App\Http\Controllers\Sys; use App\Helpers\Upload; use App\Traits\ActivityTraits; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\Sys\Module as Model; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; class Modul...
<div class="container-fluid"> <!-- Page Heading --> <div class="row ml-1"> <a href="<?= base_url(); ?>meal_attendance/add" class="btn btn-primary mb-4">Add New Attendance</a> </div> <?php echo $this->session->flashdata('message'); ?> <!-- DataTales Example --> <div class="card shadow mb-4"> <div c...
@extends('header') @yield('body')
<?php namespace SpecShaper\CalendarBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assertCo...
<?php namespace Nebula\Meta; /** * Autogenerated by Thrift Compiler (0.15.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ use Thrift\Base\TBase; use Thrift\Type\TType; use Thrift\Type\TMessageType; use Thrift\Exception\TException; use Thrift\Exception\TProtocolException; u...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Carbon\Carbon; class OrganizationAssetSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $currentTime = Carbon::now(); ...
<?php declare(strict_types = 1); /** * /src/Command/ApiKey/ChangeTokenCommand.php * * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com> */ namespace App\Command\ApiKey; use App\Command\Traits\SymfonyStyleTrait; use App\Entity\ApiKey; use App\Resource\ApiKeyResource; use Symfony\Component\Console\Command\Comm...
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
<?php /** * @see https://github.com/laminas/laminas-form for the canonical source repository * @copyright https://github.com/laminas/laminas-form/blob/master/COPYRIGHT.md * @license https://github.com/laminas/laminas-form/blob/master/LICENSE.md New BSD License */ namespace LaminasTest\Form\View\Helper; u...
@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">Tambah Kategori Pengumuman</div> <div class="card-body"> <form met...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Module Videos</title> </head> <body> @yield('content') </body> </html>
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Data Mobile Site Processed</h1> </d...
<?php namespace matrozov\yii2amqp\jobs; /** * Trait PriorityJobTrait * @package matrozov\yii2amqp\jobs * * @property int|null $priority */ trait PriorityJobTrait { /** * @var int|null $priority */ private $priority; /** * @param int|null $priority * * @return static */ ...
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Create, validate and process HTML forms * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/licens...
<?php namespace Proxies\__CG__\Mapbender\WmcBundle\Entity; /** * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR */ class Wmc extends \Mapbender\WmcBundle\Entity\Wmc implements \Doctrine\ORM\Proxy\Proxy { /** * @var \Closure the callback responsible for loading properties in the proxy ...
<?php /** * Created by PhpStorm. * User: vishal * Date: 5/10/18 * Time: 10:12 PM */ use yii\helpers\Html; use app\models\Message; $message = new Message(); ?> <div style="margin-top: 50px"> <h1>Wanna watch a movie or series but not available ? 🤔</h1> <p class="text-muted">Drop a message and we will make it...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code use Exception as Exception; // a common import class bitsane extends Exchange { public function describe () { return array_r...
<?php /* * This file is part of the pr488/aliyun. * * (c) pr488 <pr488@hotmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Aliyun\Core; use GuzzleHttp\Client; /** * Class BaseClient. */ class BaseClient { /** * @...
<?php namespace aelvan\imager\models; use craft\base\Model; use Yii; class Settings extends Model { public $transformer = 'craft'; public $imagerSystemPath = '@webroot/imager/'; public $imagerUrl = '/imager/'; public $cacheEnabled = true; public $cacheRemoteFiles = true; public $cacheDuration...
<?php namespace App\Providers; use App\Actions\Fortify\CreateNewUser; use App\Actions\Fortify\UpdateUserPassword; use App\Actions\Fortify\UpdateUserProfileInformation; use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Http\Request; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\ServiceProvid...
<?php /** * Class ChildPageSeeder. * * @category ElanceBD * * @package Elancebd * @author Risfat <md@risfbd.com> * @license https://risfbd.com Risfat * @link https://risfbd.com */ use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Carbon\Carbon; /** * Class ChildPageSeeder */ class Chi...
<?php namespace Enhavo\Bundle\AppBundle\Controller; use Enhavo\Component\Type\FactoryInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; trait ResourceControllerTrait { protected ?FactoryInterface $viewFactory; public function setViewFactory(FactoryInterfa...
<?php namespace App\Http\Controllers; use App\Menu; use Illuminate\Http\Request; use Image; use File; class MenuController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * S...
<?php /* * This file is part of the Yosymfony config-loader. * * (c) YoSymfony <http://github.com/yosymfony> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Yosymfony\ConfigLoader; /** * This file is based on Symfony ...
<!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <meta name="viewport" content="width=device-width, init...
<?php /* * File: tLookupInitialise.php * By: TMIT * Date: 28 Sep 2018 * * This script initialises the tLookup TABLE * by populating it with a list of Salutations * for use in the table tPerson * * *===================================== */ { // Create connection $host = "host=localhost "; $port ...
<?php /** * Created by PhpStorm. * User: Auerlian Pop * Date: 06.01.2016 * Time: 17:05 */ class Thrive_Dash_Api_SendinBlue_Exception extends Exception { }
@extends('layouts.Main') @section('content') <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Inserir Entrada</h1> </div> <!-- /.col-lg-12 --> </div> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> ...
<?php namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class UsersRequest extends FormRequest { public function authorize() { return true; } public function rules() { // print_r($this->route('user')); // exit; $id = base64_decode(ba...
@extends('layout') @section('content') <div class="profile-header"> <div class="profile-image"> <img src="{{ URL::to('/') }}/image/{{ $profile['image'] }}" alt="profileImage" width="500px"> </div> <div class="profile-name"> <div class="profile-name-edit"> <h3>Profile</h3> ...
<?php use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; // This file has been auto-generated by the Symfony Dependency Injection Component for internal use. // Returns the public 'web_profiler.controller.router' shared service. require_once $this->targetDirs[3].'\\vendor\\symfony\\symfony\\src\...
<?php /** * @copyright Copyright (c) 2015 ublaboo <ublaboo@paveljanda.com> * @author Pavel Janda <me@paveljanda.com> * @package Ublaboo */ namespace Ublaboo\DataGrid\Filter; use Nette; use Ublaboo\DataGrid\DataGrid; use Ublaboo\DataGrid\Exception\DataGridFilterRangeException; class FilterRange extend...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Blog extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('blog', function (Blueprint $t...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Image extends Model { protected $guarded = []; use HasFactory; // relacion polimorfica one to one con las tablas User, Post e Images public function imageable() { ...
@extends('layouts.main') @section('content') <section class="the_flow"> <div class="container"> <div class="row justify-content-center"> <div class="col cont"> <div class="row"> <div class="col the_flow_heading"> ...
<?php use App\Models\Post; use App\Models\User; use App\Http\Controllers\PostsApiController; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-----------------------------------------------------------------...
<style type="text/css"> .chat-online { color: #34ce57 } .chat-offline { color: #e4606d } .chat-messages { display: flex; flex-direction: column; max-height: 480px; overflow-y: scroll } .chat-message-left, .cha...
@extends('layouts.admin') @section('breadcrumb') <ul class="breadcrumb"> <li><a href="{{ route('student.index') }}">List of Student</a></li> <li class="active">{{ $student->name }}</li> </ul> @endsection @section('content') <div class="row"> <div class="col-md-8 col-md-offset-2"> ...
<?php namespace ZendTest\Log\TestAsset; use Zend\Controller\Request\Http as HttpRequest; class FirePhpHeader extends HttpRequest { public function getHeader($header) { if ($header == 'User-Agent') { return 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firef...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Inertia\Inertia; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use App\Http\Controllers\Controller; class WelcomeController extends Controller { public function index() { return Inertia::render('Welc...
<?php namespace Bataillon\Controller; use Bataillon\Mapper\CharactersMapper; use Bataillon\Models\GuildDataModel; use Bataillon\Persistance\FileHandler; class GuildDataController { private const INTERVAL_DAYS = 7; /** * @var GuildDataModel */ private $guildDataModel; /** * @var Char...
<?php /** * Basic test cases for the error response class. * * @package Webdav * @subpackage Tests * @version 1.1.4 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved. * @license http://ez.no/licenses/new_bsd New BSD License */ /** * Reqiuire base test */ /** * Tests for ezcWebdavError...
<?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 =...
<?php namespace RectorPrefix20211107; if (\class_exists('Tx_Extbase_Validation_Validator_ConjunctionValidator')) { return; } class Tx_Extbase_Validation_Validator_ConjunctionValidator { } \class_alias('Tx_Extbase_Validation_Validator_ConjunctionValidator', 'Tx_Extbase_Validation_Validator_ConjunctionValidator', \...
<?php class NumberFormatValueViewColumnDecorator extends CustomFormatValueViewColumnDecorator { private $numberAfterDecimal; private $thousandsSeparator; private $decimalSeparator; public function __construct($innerField, $numberAfterDecimal, $thousandsSeparator, $decimalSeparator) { paren...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreSolutionPartnerTranslationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; ...
<?php // venue Breadcrumbs::for('admin.home.index', function ($trail) { $trail->push('ホーム', route('admin.home.index')); }); Breadcrumbs::for('admin.venues.index', function ($trail) { $trail->parent('admin.home.index'); $trail->push('会場 一覧', route('admin.venues.index')); }); Breadcrumbs::for('admin.venues.creat...