This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Watch the video at https://youtu.be/Tlu2Prm_UNw | |
1. Stop default apache | |
% sudo apachectl stop | |
% sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null | |
2. Install apache | |
% brew install httpd | |
% brew services start httpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Watch the video at https://youtu.be/3ESdXYOloeQ | |
1. Add new tap for php | |
% brew tap shivammathur/php | |
2. Install php | |
% brew install shivammathur/php/[email protected] | |
3. Link the php | |
% brew link --overwrite --force [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Watch the video at https://youtu.be/uwvh3ojSin4 | |
1. Install MariaDB | |
% brew install mariadb | |
2. Start the MariaDB server | |
% brew services start mariadb | |
3. Change password | |
% sudo /usr/local/bin/mysql_secure_installation OR % sudo mysql_secure_installation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Watch the video at https://youtu.be/_CBqrrh85YY | |
1. Open apache config file | |
% subl /usr/local/etc/httpd/httpd.conf | |
2. Uncomment the following line | |
LoadModule vhost_alias_module lib/httpd/modules/mod_vhost_alias.so | |
Include /usr/local/etc/httpd/extra/httpd-vhosts.conf | |
3. Open vhosts file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Install Apache / Nginx | |
- Install PHP | |
- Install Composer | |
- on Windows, download the installer and install (https://getcomposer.org/download/) | |
- on macOS, you can install using brew | |
- on macOS, make sure to place Composer's system-wide vendor bin directory in your $PATH | |
$ echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.zshrc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## hasOne (user has one address), (address own by one user) ## | |
-------------------------------------------------------------- | |
- User Model | |
protected $fillable = [ | |
'id', | |
'name' | |
]; | |
- Address Model | |
protected $fillable = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Install nodejs | |
- on Windows, download the installer and install (choose LTS version, https://nodejs.org) | |
- on macOS, you can install using brew | |
- OR you can download the installer for mac and install (choose LTS version, https://nodejs.org) | |
- Install Angular CLI | |
$ npm install -g @angular/cli | |
$ ng v | |
- Create, build, and serve a new angular project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Apache for Windows | |
- Download and install Apache | |
- Download at https://www.apachelounge.com | |
= Download and install vc_redist_x64 | |
= Download httpd-2.4.55-win64-VS17.zip | |
- Unzip httpd-2.4.55-win64-VS17.zip | |
- Copy Apache24 folder to C drive | |
- Open cmd prompt as Administrator | |
- Go to the C:\Apache24\bin directory | |
= Enter httpd.exe -k install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Composer | |
- Download the installer and install (https://getcomposer.org/download/) | |
## Node.js | |
= Download the installer and install (choose LTS version, https://nodejs.org) | |
## Laravel Installer as a global Composer dependency: | |
- Open cmd prompt | |
= Enter composer global require laravel/installer | |
= Enter laravel --version to check laravel installer version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="{{ asset('assets/css/xxxx.css') }}" rel="stylesheet"> | |
<script src="{{ asset('assets/js/xxxx.js') }}"></script> | |
// Bootstrap Icons | |
@import 'bootstrap-icons/font/bootstrap-icons.css'; | |
<img src="{{ asset('assets/images/xxxx.png') }}"> | |
@include('layouts.admin_layouts.navbar') | |
@include('layouts.admin_layouts.sidebar') |