Skip to content

Instantly share code, notes, and snippets.

View talha08's full-sized avatar
👨‍💻
Easy Life, Busy Day

Md Abu Talha talha08

👨‍💻
Easy Life, Busy Day
View GitHub Profile
//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");
{{ $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
Google Recaptcha:
.........................................
https://github.com/teepluss/laravel-recaptcha
Image InterVEntion:
........................................
https://github.com/Intervention/image
Guzzle, PHP HTTP client:
.......................................
................................................
# Query Builder
................................................
- [Introduction](#introduction)
- [Selects](#selects)
- [Joins](#joins)
- [Advanced Wheres](#advanced-wheres)
- [Aggregates](#aggregates)
- [Raw Expressions](#raw-expressions)
- [Inserts](#inserts)
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');
................................................................
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' => '',
<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">
//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);
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);
});