text
stringlengths
2
1.03M
<?php /** * This file is part of the ZBateson\StreamDecorators project. * * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace ZBateson\StreamDecorators; use Psr\Http\Message\StreamInterface; use GuzzleHttp\Psr7\StreamDecoratorTrait; use GuzzleHttp\Psr7\BufferStream; use RuntimeException; /*...
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>
<?php namespace App\Http\Controllers; use App\video; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class VideoController extends Controller { function Index(){ $data = video::select()->paginate(24); return view('backend.admin-video',['data'=>$data]); } function Add(R...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ProductRating extends Model { protected $fillable = ['user_id', 'rate_value', 'product_id']; }
<?php declare(strict_types = 1); namespace Genius257\ViewFileLanguageServer\Index; use Genius257\ViewFileLanguageServer\Definition; use Sabre\Event\EmitterTrait; /** * Represents the index of a project or dependency * Serializable for caching */ class Index implements ReadableIndex, \Serializable { use Emitte...
<?php namespace PhpSmpp; use PhpSmpp\Pdu\Part\Address; use PhpSmpp\Pdu\Part\Tag; use PhpSmpp\PduParser; use PhpSmpp\Transport\SMPPSocketTransport; use PhpSmpp\Transport\SocketTransport; use PhpSmpp\Pdu\Pdu; use PhpSmpp\Pdu\SmppSms; use PhpSmpp\Pdu\SmppDeliveryReceipt; use PhpSmpp\Exception\SmppException; use PhpSmpp\...
@extends('plantilla') @section('content') <style> .uper { margin-top: 40px; } </style> <div class="uper"> @if(session()->get('success')) <div class="alert alert-success"> {{ session()->get('success') }} </div><br /> @endif <table class="table table-striped"> <thead> <tr> <td>ID</td> <td>NOMBRE</td> <td>FOTO</td> <td>SE...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:...
<?php namespace Inensus\KelinMeter\Exceptions; class KelinApiEmtyDataException extends \Exception { }
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace Enbit\eBaySDK\Test\MerchantData\Enums; use Enbit\eBaySDK\MerchantData\Enums\CheckoutStatusCodeType; c...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class MaterialPurchased extends Model { use HasFactory; protected $table = 'materials_purchased'; public $timestamps = true; protected $fillable = [ 'supplier_id', ...
<x-principal> <x-slot name="title"> Inicio </x-slot> @switch(Auth::user()->rol) @case('propietario') <x-sidebar> <x-slot name="showGestion"> show </x-slot> <x-slot name='gestion'> active </x-slot> ...
<?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 BackendBundle\Controller; use Symfony\Component\HttpFoundation\Request; interface BaseController { public function mainAction(Request $request); }
@extends('admin.layouts.caredryinstructions') <?php error_reporting(0); ?> @section('content') <div class="wrapper wrapper-content animated fadeInRight"> <div class="col-lg-12"> <div class="logoutSucc"> @if (session('success')) <div class="alert alert-success" ro...
<?php namespace dface\criteria\parser; use dface\criteria\node\Constant; use dface\criteria\node\Criteria; use dface\criteria\node\FloatConstant; use dface\criteria\node\IntegerConstant; use dface\criteria\node\LogicalAnd; use dface\criteria\node\LogicalOr; use dface\criteria\node\Operand; use dface\criteria\node\Ref...
@extends('layouts.admi') @section('content') @if(count($errors)>0) <div class="alert alert-danger" role="alert"> <ul> @foreach($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <div class="...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
<!--继承父模板--> @extends('admin.layouts.layouts') <!--标题--> @section('content') <div class="main-body"> <div class="panel mb-3"> <div class="panel-header"> <span></span> <ul class="nav nav-right"> <li class="nav-item"> <a ...
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Catalog\Test\Unit\Model\CustomOptions; use Magento\Catalog\Model\CustomOptions\CustomOption; use Magento\Catalog\Model\Webapi\Product\Option\Type\File\Processor as FileProcessor; class C...
<?php namespace api\modules\v1\controllers; use api\controllers\AController; /** * 默认控制器 * * Class DefaultController * @package api\modules\v1\controllers */ class DefaultController extends AController { public $modelClass = 'common\models\member\Member'; /** * 测试查询方法 * * @return string ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?><!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Database Error</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css"> <style type="text/css"> body { margin-top: 15%; ...
<?php /** * CreateTrailerTest.php * * @author Josh Curtis <josh.curtis@valtech.co.uk> */ namespace Dvsa\OlcsTest\Api\Domain\CommandHandler\Licence; use Mockery as m; use Doctrine\ORM\Query; use Dvsa\OlcsTest\Api\Domain\CommandHandler\CommandHandlerTestCase; use Dvsa\Olcs\Api\Domain\Repository\Trailer as TrailerR...
<?php defined('SYSPATH') or die('No direct script access.'); /** * STDERR log writer. Writes out messages to STDERR. * * @package Kohana * @category Logging * @author Kohana Team * @copyright (c) 2008-2011 Kohana Team * @license http://kohanaphp.com/license */ class Kohana_Log_StdErr extends Kohana...
<?php namespace App\Models; trait CustomID { public static function generateID() { try { $candidateID = substr(md5(random_bytes(16)), 0, 16); // call the same function if the id exists already if (parent::idExist($candidateID)) { return parent::generate...
@if( session('mensaje') ) <div class="alert alert-success alert-dismissible fade show"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> {{ session('mensaje') }} </div> @endif
<?php use Karla\Karla; /** * Identify Test file * * PHP Version 5.3< * * @author Johannes Skov Frandsen <localgod@heaven.dk> * @license http://www.opensource.org/licenses/mit-license.php MIT * @link https://github.com/localgod/karla Karla * @since 2012-04-05 */ /** * Identify Test class * * @auth...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddForeignKeysToOptionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('option...
<?php while (have_posts()) : the_post(); ?> <?php if (is_page(31)): ?> <?php get_template_part('templates/page', 'header'); ?> <?php endif; ?> <section> <div class="container-fluid"> <div class="container"> <?php if (is_page(7)): ?> <div class="col...
<?php namespace App\Http\Controllers; use App\Model\DemonstracaoContabel; use App\Model\Unidade; use Illuminate\Http\Request; use App\Model\LoggerUsers; use Illuminate\Support\Facades\Storage; use App\Http\Controllers\PermissaoUsersController; use App\Model\PermissaoUsers; use Auth; use Validator; class Demonstracao...
<?php declare(strict_types=1); namespace FOS\MessageBundle\Tests\FormHandler; use Exception; use FOS\MessageBundle\Composer\ComposerInterface; use FOS\MessageBundle\FormHandler\NewThreadMessageFormHandler; use FOS\MessageBundle\FormModel\NewThreadMessage; use FOS\MessageBundle\MessageBuilder\AbstractMessageBuilder; u...
<?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\DependencyInjection\Loader\Configurator; use Symfony\...
<?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...
<!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <h1 class="h3 mb-2 text-gray-800"><a href="<?php echo site_url('perankegiatan') ?>"><i class="fas fa-chevron-left"></i></a> Update peran kegiatan</h1> &nbsp; ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class job extends Model { protected $table = 'jobs'; // }
<?php /* Prototype: string basename ( string $path [, string $suffix] ); Description: Given a string containing a path to a file, this function will return the base name of the file. If the filename ends in suffix this will also be cut off. */ $file_path_variations = array ( /* pat...
<?php namespace app\channel\model; use think\Model; class CrmRecharge extends Model { public function deduct() { //获取扣款条件 最终订单显示实际售出金额 //当前渠道商、实际金额 //多级扣款情况 扣款条件+扣款金额 cid => '1','money' => '222', //逐级扣款从级别最高开始扣款 } public function money_map($cid = '', $money = '') { //多级渠道商 //是否有返利 } //计算各级结算金额...
<?php namespace Eypiay\Eypiay; class Eypiay { // Build your next great package. }
<?php declare(strict_types=1); namespace muqsit\vanillagenerator\generator\biomegrid; class SmoothMapLayer extends MapLayer{ private MapLayer $below_layer; public function __construct(int $seed, MapLayer $below_layer){ parent::__construct($seed); $this->below_layer = $below_layer; } public function genera...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Model extends CI_Model { /** * error message (uses lang file) * * @var string */ protected $errors; protected $messages; /** * delimiters * * @var string */ protected $message_start_delimiter; protected $me...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Item; class ItemController extends Controller { public function search() { $results = Item::when(request('q'), function($query) { $query->where('item_name', 'like', '%'.request('q').'%') ...
<?php /* * Copyright (c) 2019, Sgt. Kabukiman, https://github.com/sgt-kabukiman * * This file is released under the terms of the MIT license. You can find the * complete text in the attached LICENSE file or online at: * * http://www.opensource.org/licenses/mit-license.php */ namespace horaro\WebApp\Controller\A...
<?php /* Return command output */ function getCommand($c) { $output = shell_exec($c); return $output; } /* Return log file output */ function getFile($file) { session_start(); $handle = fopen($file,'r'); if (isset($_SESSION['offset'])) { $data = stream_get_contents($handle, -...
<?php include("../includes/common.php"); if(empty($_SESSION['ytidc_user']) || empty($_SESSION['ytidc_token'])){ @header("Location: ./login.php"); exit; }else{ $username = daddslashes($_SESSION['ytidc_user']); $userkey = daddslashes($_SESSION['ytidc_token']); $user = $DB->query("SELECT * FROM `ytidc_u...
<?php return array( /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces wi...
<?php namespace frontend\models; use Yii; /** * This is the model class for table "service". * * @property integer $id * @property string $category_id * @property integer $owner * @property string $can_reserve * @property string $name * @property string $slug * @property string $phone * @property string $i...
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\Vpc\V20160428\Models; use AlibabaCloud\Tea\Model; class UpdateVirtualPhysicalConnectionResponse extends Model { /** * @var string[] */ public $headers; /** * @var UpdateVirtualPhysicalConnectionRespon...
<!-- Content Header (Page header) --> <section class="content-header"> <h1> Dashboard <small>Version 2.0</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li class="active">Dashboard</li> </ol> </section> <!-- Main content --> <section class="c...
<?php class AddLinkAnnotation { public static function Run() { $apiInstance = Utils::GetAnnotateApiInstance(); $a = new GroupDocs\Annotation\Model\AnnotationInfo(); $pt1 = new GroupDocs\Annotation\Model\Point(); $pt1->setX(80); $pt1->setY(730); $pt2 = new GroupDocs\Annotation\Model\Point(); $pt2->se...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
<?php namespace TypiCMS\Modules\Core\Providers; use Illuminate\Support\Collection; use Illuminate\Support\ServiceProvider; class CollectionExtensions extends ServiceProvider { public function boot() { Collection::macro('translate', function ($locale = null) { $locale = $locale ?: app()->g...
<?php @session_start(); ?> <!DOCTYPE html> <html> <head> <title>AJAX PHP Login Script using Bootstrap</title> <meta content="width=device-width, initial-scale=1.0" name="viewport" > <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" rel="stylesheet" /> <link href="css...
<?php use Illuminate\Database\Seeder; class ProductHasLinksSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $productReference = DB::table('product')->where('name', 'Gold pinky ring')->first(); $medialinkReference = DB::ta...
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class SignupStoreRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Sentinel; use App\Estudante; use App\Docente; use App\Curso; use App\Area; use Session; class LoginController extends Controller { public function login() { return view('auth.login'); } public function postLogin(Request $req...
<script> $("#login").submit(function (e){ e.preventDefault(); var userid=$("#tu").val(); var password=$("#tp").val(); if(userid!=""){ const desk1=do_data_list(userid); const desk2=do_data_list(password); $.ajax({ ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddUserRoleIdToHearing extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('hearing', fu...
<!DOCTYPE HTML> <html> <head> <title>Pelayanan Kependudukan</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Augment Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andr...
<?php //this is the main page for the site. //include the configuration file: header("Content-Type:text/html; charset=utf-8"); require ('../../includes/config.inc.php'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Handle the form. // Need the database connection: require (MYSQL); // Trim all the incoming data...
<?php /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License")...
@extends('layouts.main') @section('title') <title>Altair</title> @endsection @section('content') <!-- Page Title ============================================= --> <section id="page-title"> <div class="container clearfix"> <h1>DTU Altair</h1> </div> </section><!-- #page-title end --> <!-- Conten...
--TEST-- Multicast support: IPv6 send options --SKIPIF-- <?php if (!extension_loaded('sockets')) { die('skip sockets extension not available.'); } if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } $level = IPPROTO_IPV6; $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("skip Can not create ...
<?php namespace Database\Seeders; use App\Models\Category; use Illuminate\Database\Seeder; class CategorySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $cate = new Category(); $cate->name = 'Công việc'; $cate->...
<?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\Validator\Constraints; use Symfony\Component\Validato...
<!DOCTYPE html> <html lang="en"> <head> @include('dpmd.layout.head') </head> <body> <!-- ======= Header ======= --> <header id="header" class="fixed-top "> @include('dpmd.layout.header') </header><!-- End Header --> <!-- ======= Hero Section ======= --> <section id="hero"> <div id="heroCarousel" cla...
<?php namespace Aiwhj\audioCNV\Engine; use Aiwhj\audioCNV\Exceptions\NotConvert; use Aiwhj\audioCNV\Exceptions\NotFound; use Symfony\Component\Process\Process; class mp3Towav { protected $CMD = 'ffmpeg -i %s -f wav %s'; public function output($input, $output): bool { if (!file_exists($input)) { ...
<?php namespace Core\Service\Entity; class User extends AbstractEntityService { /** * @return \Core\Entity\User */ public function getUser() { return parent::getEntity(); } /** * @return \Core\Entity\Role */ public function getRole() { $roles = $this->g...
<?php namespace Pace\MailDigester\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; class Notification extends Model { use Notifiable; protected $fillable = ['read_at']; }
<?php namespace FC\PlatformBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class FCPlatformBundle extends Bundle { }
<?php return [ /* |-------------------------------------------------------------------------- | Root Namespace |-------------------------------------------------------------------------- | | The root namespace for JSON API classes for this API. If `null`, the | namespace will default to `J...
<h4> Adicionar Noticia</h4> <blockquote> <form name="Add_News" id="Add_News"> <table width="452" border="0"> <tr> <td>Titulo:</td> <td><input type="text" name="Title" id="Title" /></td> </tr> <tr> <td>Data:</td> <td><input type="text" value="{Notice_Date} as {Notice_Time}" disabled="disabled" /><...
<?=$header;?> <div class="row"> <div class="col-xs-12"> <h1 class="page-header">Pages</h1> </div> </div> <div class="row"> <div class="col-xs-12"> <div class="col-xs-4 form-group"> <a class="btn btn-primary" href="<?=base_url();?>pages/add">Add Pages</a> </div> ...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { \Schema::defaultStringLength(191); \URL::forceScheme('https')...
<?php use Illuminate\Database\Seeder; use App\Entities\ProjectNote; class ProjectNoteTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Project::truncate(); factory(ProjectNote::class, 50)->create(); } }
@extends('layouts.admin') @section('title', 'Search') @section('content') <div class="header bg-primary pb-6"> <div class="container-fluid"> <div class="header-body"> <div class="row align-items-center py-4"> <div class="col-lg-6 col-7"> <h6 class="h2 text-w...
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
<?php function __autoload($class_name) { var_dump(class_exists($class_name, false)); require_once(dirname(__FILE__) . '/' . $class_name . '.p5c'); echo __FUNCTION__ . '(' . $class_name . ")\n"; } var_dump(class_exists('autoload_derived', false)); var_dump(class_exists('autoload_derived', false)); class Test { ...
<?php if (phpversion() < 5) { exit('Minify requires PHP5 or greater.'); } // check for auto-encoding $encodeOutput = (function_exists('gzdeflate') && !ini_get('zlib.output_compression')); // recommend $min_symlinks setting for Apache UserDir $symlinkOption = ''; if (0 === strpos($_SERVER["SERVER...
<?php use miloschuman\highcharts\Highcharts; use kartik\grid\GridView; use yii\data\Pagination; use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\helpers\Url; use yii\helpers\ArrayHelper; $this->title = ':: HT Screen ::'; ?> <div class="col-md-12 col-xs-12" style="margin-top : 60px;"> <h4 class="pull-le...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><script src="//archive.org/includes/analytics.js?v=cf34f82" type="text/javascript"></script> <script type="text/javascript"...
<?php $servername = "localhost"; $username = "mstream"; $password = "mstream"; $db = "mstream"; // Create connection $conn = new mysqli($servername, $username, $password, $db); function getVotes($conn, $itemName,$location) { $rs = $conn->query("SELECT votes, last_vote FROM songvotes WHERE location='".$conn->real_es...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the fr...
<?php include('env.php'); if($route['auth']=='user'){ if(!$_SESSION[$app_key]['id']){ header("Location: ".$app_url.'/login_form'); exit; } // $roles = is_array($route['role'])?$route['role']:[$route['role']]; // if(!in_array($_SESSION[$app_key]['role'],$roles) && $route['role']!='root'){ // heade...
@extends('master') @section('main_content') <div class="panel panel-default"> <table class="table"> <tr> <td class="middle"> <div class="media"> <div class="media-left"> <a href="#"> <img clas...
<?php return [ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::cla...
@extends('layouts.admin.app') @section('title', 'Testing examination') @section('content') @prepend('page-css') <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.14/dist/css/bootstrap-select.min.css"> <style> .cursor-pointer { cursor: pointer; } .item-generator:hover { background :#...
<?php namespace App\Tenant; use Illuminate\Support\Facades\Facade; class TenantFacade extends Facade { protected static function getFacadeAccessor() { return TenantManager::class; } }
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Illuminate\Support\Facades\Log; use App\Models\User; use App\Models\Message; class CustomDbMessage extends No...
<?php namespace Drupal\azure_ad_delta_sync; use ItkDev\AzureAdDeltaSync\Handler\HandlerInterface; /** * User manager. */ interface UserManagerInterface extends HandlerInterface { /** * Set options. * * @param array $options * The options. */ public function setOptions(array $options); /** ...
@extends('backend.admin.layouts.master') @section('main-content') <!-- Container-fluid starts--> <div class="container-fluid"> <div class="page-header"> </div> </div> <!-- Container-fluid Ends--> <!-- Container-fluid starts--> <div class="container-fluid"> <div class="row product-adding"> <div cla...
<?php namespace common\models\comments; use Yii; use common\components\behaviors\PurifyBehavior; use yii\behaviors\BlameableBehavior; use yii\behaviors\TimestampBehavior; use yii\helpers\ArrayHelper; use yii\helpers\Html; /** * This is the model class for table "comments". * * @property string $id * @property st...
<?php namespace Amethyst\Managers; use Amethyst\Core\ConfigurableManager; use Railken\Lem\Manager; /** * @method \Amethyst\Models\Alias newEntity() * @method \Amethyst\Schemas\AliasSchema getSchema() * @method \Amethyst\Repositories\AliasRepository getRepository() * @method \Amethyst\Ser...
@section('title', __('Registered Roles')) <x-app-layout> <x-slot name="header"> <div class="row"> <div class="col-sm-6"> <h2 class="h4 font-weight-bold"> {{ __('Registered Roles') }} </h2> </div> <div class="col-sm-6"> ...
@extends('layouts.app') @section('content') <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Contacts</h1> </div> </div> </div><!-- /.container-fluid --> </section>...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; class OrderFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize(): bool { ...
<div class="page-wrapper"> <div class="container-fluid"> <div class="row"> <center> <?php if((isset($msg))&& (isset($alert_class))) { echo "<div class=\"alert ". $alert_class ."\">"; echo $msg; echo "<a class=\"alink\" href=\"#\" aria-label=\"close\">&times;</a></div>"; } ?...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class UserManage extends Model { use HasFactory; public $table = "users"; protected $fillable = [ 'name', 'email', 'is_admin', 'password' ]; }
<!-- Id Field --> <div class="form-group"> {!! Form::label('id', 'Id:') !!} <p>{!! $employee->id !!}</p> </div> <!-- First Name Field --> <div class="form-group"> {!! Form::label('first_name', 'First Name:') !!} <p>{!! $employee->first_name !!}</p> </div> <!-- Last Name Field --> <div class="form-grou...
<?php namespace App\Http\Controllers; use App\Models\Category; use App\Models\Comment; use App\Models\Favorite; use App\Models\Relation; use App\Models\Restaurant; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class HomeController extends Controller { /** * Create a new controller ...
<div class="shadow overflow-hidden sm:rounded-md mt-4"> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ $company ? 'Actualizar Compañia' : 'Crear Compañia' }} </h2> </x-slot> <div class="px-4 py-5 bg-white sm:p-6"> <form wire:submit.prevent="save" class=...