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
//Author: talha | |
#include<stdio.h> | |
int main() | |
{ | |
int i,j; | |
for(i=0;i<10;i++){ | |
for(j=0;j<=i;j++){ | |
printf("*"); | |
} | |
printf("\n"); |
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
{{ $var }} – Echo content | |
{{ $var or 'default' }} – Echo content with a default value | |
{{{ $var }}} – Echo escaped content | |
{{-- Comment --}} – A Blade comment | |
@extends('layout') – Extends a template with a layout | |
@if(condition) – Starts an if block | |
@else – Starts an else block | |
@elseif(condition) – Start a elseif block | |
@endif – Ends a if block | |
@foreach($list as $key => $val) – Starts a foreach block |
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
Google Recaptcha: | |
......................................... | |
https://github.com/teepluss/laravel-recaptcha | |
Image InterVEntion: | |
........................................ | |
https://github.com/Intervention/image | |
Guzzle, PHP HTTP client: | |
....................................... |
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
................................................ | |
# Query Builder | |
................................................ | |
- [Introduction](#introduction) | |
- [Selects](#selects) | |
- [Joins](#joins) | |
- [Advanced Wheres](#advanced-wheres) | |
- [Aggregates](#aggregates) | |
- [Raw Expressions](#raw-expressions) | |
- [Inserts](#inserts) |
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
Generate String: str_random(limit) //ex: str_random(20) | |
Or Using String Class: Str::random(60) | |
............................................................... | |
Time Difference: return $rightNow = Carbon::now()->diffForHumans(Auth::user()->created_at); // use Carbon/Carbon; | |
................................................................ | |
For Year Select in Form: Form::selectYear('year', 2011, 2015); | |
................................................................ | |
For Month Select in Form: Form::selectMonth('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
1. Go to | |
............................................... | |
app/config/mail.php | |
............................................... | |
Change ‘drive’ from ‘smtp’ to ‘mail’ | |
'driver' => 'mail', | |
Next, make ‘host’ name from ‘smtp.mailgun.org’ to nothing, so make it blank. | |
'host' => '', |
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
<td> <a><button type="button" class="btn btn-info btn-sm" data-toggle="modal" data-target="#myModal_{{$worker->id}}" >Details</button></a></td> | |
<!-- Modal --> | |
<div id="myModal_{{$worker->id}}" class="modal fade" role="dialog"> | |
<div class="modal-dialog"> | |
<!-- Modal content--> | |
<div class="modal-content" > | |
<center> | |
<div class="modal-header"> |
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
//http://www.lglproperties.com | |
//complete | |
//get url | |
public function lglproperties() | |
{ | |
$ch = curl_init("https://lgl.appfolio.com/listings/listings?utf8=%E2%9C%93&filters%5Border_by%5D=rent_desc&filters%5Bproperty_list%5D=&filters%5Bmarket_rent_from%5D=&filters%5Bmarket_rent_to%5D=&filters%5Bbedrooms%5D=&filters%5Bbathrooms%5D=&filters%5Bcities%5D%5B%5D=&filters%5Bpostal_codes%5D%5B%5D="); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
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
Route::get('time',function(){ | |
$created = new Carbon\Carbon(User::where('id',1)->first()->created_at); | |
$now = Carbon\Carbon::now(); | |
return $difference = ($created->diff($now)->days < 1) ? 'today' : $created->diffForHumans($now); | |
}); |
OlderNewer