See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
<?php | |
namespace App\Http\Controllers\Student; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests\Student\ImportRequest; | |
use App\Imports\Student\ImportExcel; | |
use Maatwebsite\Excel\Validators\ValidationException; | |
use Illuminate\Validation\ValidationException as IlluminateValidationException; |
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
<?php | |
// in tests/Bootstrap.php | |
// Only run this in the case of non-parallel testing. Parallel testing is handled through events registered on. | |
// App/Providers/TestDatabaseProvider | |
if (getenv('LARAVEL_PARALLEL_TESTING') === false) { | |
require('vendor/autoload.php'); | |
/** @var \Illuminate\Foundation\Application $app */ | |
$app = require __DIR__ . '/../bootstrap/app.php'; | |
$app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap(); |
import React, { useEffect, useRef, useState } from 'react'; | |
import { StyleSheet } from 'react-native'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { SafeAreaView } from 'react-native-safe-area-context'; | |
import WebView, { WebViewMessageEvent } from 'react-native-webview'; | |
import { StatusBar } from 'expo-status-bar'; | |
enum MessageTypes { |
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class GoogleDriveServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap the application services. |
<?php | |
use App\Console\Kernel; | |
use Carbon\Carbon; | |
use Illuminate\Console\Scheduling\Event; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Support\Collection; | |
class ConsoleSchedulingTest extends TestCase | |
{ |
server { | |
listen 80; | |
listen 443 ssl; | |
server_name domainname.com; | |
gzip on; | |
gzip_types text/plain application/xml; | |
gzip_proxied no-cache no-store private expired auth; | |
gzip_min_length 1000; |
==== CENTOS 7 LEMP STACK INSTALLATION ==== | |
0. Make sure the centos 7 server have internet connection | |
1. Install the EPEL Repository | |
sudo yum -y install epel-release | |
2. Install the Remi Repository | |
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
3. Install Nginx |
<x-layout> | |
<x-section> | |
<x-tabs active="First"> | |
<x-tab name="First"> | |
First content goes here. | |
</x-tab> | |
<x-tab name="Second"> | |
Second content goes here. | |
</x-tab> |