On your App\Http\Controllers\Auth\LoginController
you might have the following codes.
public function __construct()
{
$this->middleware('guest')->except(['logout', 'getLogout']);
}
public function getLogout()
{
// Dockerfile for the Frontend server | |
// Image: company/frontend-server | |
FROM node:lts-alpine | |
ENV PORT 80 | |
WORKDIR /var/www/html | |
COPY src/package.json . | |
COPY src/package-lock.json . |
<?php | |
// Make sure you have a file.txt within this directory. | |
/** @var string File path location */ | |
$fileLocation = __DIR__ . DIRECTORY_SEPARATOR . "file.txt"; | |
/** @var Streams The stream of the file. */ | |
$fileStream = fopen($fileLocation, 'r'); | |
/** @var Streams|string The content of the file. */ |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class AppRestartCommand extends Command | |
{ | |
/** | |
* The name and signature of the console command. |
On your App\Http\Controllers\Auth\LoginController
you might have the following codes.
public function __construct()
{
$this->middleware('guest')->except(['logout', 'getLogout']);
}
public function getLogout()
{
<?php | |
namespace App\Http\Controllers; | |
use App\Post; | |
use Illuminate\Routing\Controller as BaseController; | |
class Controller extends BaseController | |
{ | |
public function edit(Post $post) |
<?php | |
namespace App\Http\Requests; | |
use Illuminate\Foundation\Http\FormRequest; | |
class UserRequest extends FormRequest | |
{ | |
protected $base_rules = [ | |
'name' => 'required|string|max:255', |
@echo off | |
title Add hosts | |
set /p ip=Enter IP: | |
set /p url=Enter URL: | |
echo %ip% : %url% | |
echo %ip% %url% >> %WINDIR%\System32\drivers\etc\hosts | |
goto commonexit |
@echo off | |
title Add Hosts | |
set arg1=%1 | |
set arg2=%2 | |
IF "%1"=="" goto empty | |
IF "%2"=="" goto empty | |
echo %arg1% %arg2% |
#!/usr/bin/env bash | |
apt-get install -y --force-yes php5.6-cli php5.6-dev \ | |
php5.6-pgsql php5.6-sqlite3 php5.6-gd \ | |
php5.6-curl php5.6-memcached \ | |
php5.6-imap php5.6-mysql php5.6-mbstring \ | |
php5.6-xml php5.6-zip php5.6-bcmath php5.6-soap \ | |
php5.6-intl php5.6-readline | |
<!DOCTYPE html> | |
<html lang="en" @yield('html-attr')> | |
<head @yield('head-attr')> | |
@yield('head-pre') | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>@yield('title', config('app.title'))</title> | |
@yield('head') |