Skip to content

Instantly share code, notes, and snippets.

View cmschandan's full-sized avatar
🥉
Busy in Coding

Chandan Kumar cmschandan

🥉
Busy in Coding
  • Frontend Developer @ Cyberwaves
  • Bokaro Steel City
  • X @hrefcoder
View GitHub Profile
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
@cmschandan
cmschandan / vue-template-error.html
Created April 15, 2021 08:37
npm run dev error
ERROR in ./resources/assets/js/components/ExampleComponent.vue
Module build failed: Error:
Vue packages version mismatch:
- vue@2.6.12 (C:\xampp\htdocs\mhn-doctors-ms\node_modules\vue\dist\vue.runtime.common.js)
- vue-template-compiler@2.6.11 (C:\xampp\htdocs\mhn-doctors-ms\node_modules\vue-template-compiler\package.json)
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p> This is a paragraph. </p>
<p>This is another paragraph. </p>
</body>
</html>
import 'package:flutter/material.dart';
void main() {
runApp(new HelloWorld());
}
class HelloWorld extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
<!DOCTYPE html>
<html>
<body>
<?php
// Lisbon, Portugal:
// Latitude: 38.4 North, Longitude: 9 West
// Zenith ~= 90, offset: +1 GMT
echo("Lisbon, Portugal: Date: " . date("D M d Y"));
<!DOCTYPE html>
<html>
<body>
<?php
//Calculate the sunrise time for Lisbon, Portugal
//Latitude: 38.4 North
//Longitude: 9 West
//Zenith ~= 90
//offset: +1 GMT
<?php
print_r(localtime());
echo "<br><br>";
print_r(localtime(time(),true));
?>
<?php
// Prints the day
echo date("l") . "<br>";
// Prints the day, date, month, year, time, AM or PM
echo date("l jS \of F Y h:i:s A");
?>