This file contains hidden or 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
| $sentence = 'This is my search keyword'; | |
| DB::select(DB::raw("SELECT *, MATCH(body) AGAINST('$sentence') as score | |
| FROM articles | |
| WHERE MATCH(body) AGAINST('$sentence') AND | |
| WHERE score > 1 | |
| order by score desc | |
| LIMIT 3;")); |
This file contains hidden or 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
| <?php | |
| $sentence = 'This is my search keyword'; | |
| DB::select(DB::raw("SELECT *, MATCH(body) AGAINST('$sentence') as score | |
| FROM articles | |
| WHERE MATCH(body) AGAINST('$sentence')")); |
This file contains hidden or 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
| SELECT | |
| *, MATCH(body) AGAINST('This is my search keyword') as score | |
| FROM articles | |
| WHERE MATCH(body) AGAINST('This is my search keyword'); |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head><title>View Details</title></head> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| div.container | |
| { | |
| width: 100%; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head><title>View Details</title></head> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| div.container | |
| { | |
| width: 100%; |
This file contains hidden or 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
| <?php session_start(); | |
| //php edit delete records | |
| ?> | |
| <!DOCTYPE html> | |
| <html> | |
| <head><title>Edit Details</title></head> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
This file contains hidden or 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
| # My custom host | |
| <VirtualHost *:80> | |
| ServerName mysite.dev | |
| DocumentRoot "/Users/yourusername/path/to/your/site" | |
| <Directory "/Users/yourusername/path/to/your/site"> | |
| Options Indexes FollowSymLinks Includes ExecCGI | |
| AllowOverride All | |
| Require all granted | |
| </Directory> | |
| ErrorLog "logs/mysite.local-error_log" |
This file contains hidden or 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
| <?php | |
| Carbon\Carbon::parse('April') |
This file contains hidden or 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
| <?php | |
| Carbon\Carbon::parse('1 April')->month; |
This file contains hidden or 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
| <?php | |
| //IT SHOULD BE INSIDE YOUR MEHTOD | |
| //get last record | |
| $record = RecordModel::latest()->first(); | |
| $expNum = explode('-', $record->invoiceno); | |