We will install Larave 4.1 with PHP5.5 & Latest nginx on Ubuntu 12.04.3 x64.
apt-get update && apt-get upgrade
adduser [username]
usermod -aG sudo [username]
apt-get -y install git
$site = Site::approved()->featured()->where('slug',$slug)->first(); | |
$related = array(); | |
if(count($site->categories) > 0){ | |
$categoryIDs = array(); | |
foreach ($site->categories as $category) { | |
$categoryIDs[] = $category->id ; | |
} | |
shuffle($categoryIDs); | |
$relatedCategory = Category::with(array('sites' => function($query) |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
Setting up Sendy with Laravel | |
(there might be bugs, I striped out some parts of my code because what I have is more complicated then that, so, sorry if it's broken!) | |
-- | |
I would recommand creating a database for Sendy only. | |
Add Sendy's database into your database.php (1) | |
Create the Campaign model (2), and specify that you want to use Sendy's database (Campaigns are the only thing we really need to create, other things like creating lists can be done through Sendy interface, and there is a PHP library to add subscribers) | |
Now, it's time to install Sendy, usually somewhere like yourapp.com/sendy or yourapp.com/newsletter |
composer require roumen/sitemap | |
branch dev-master | |
add to app.php providers | |
'Roumen\Sitemap\SitemapServiceProvider', | |
then in your route do something like : | |
Route::get('sitemap', function(){ | |
$sitemap = App::make("sitemap"); |
public function scopePopular($query) | |
{ | |
return $query->orderBy(DB::raw('views_cache + 5*clicks_cache'),'desc'); | |
} |
These editors try to give good UX for WYSIWYG :
This is a simple parallax effect that I made for http://mymaplist.com/login
A Pen by Maksim Surguy on CodePen.
[ Launch: Tributary inlet ] 6236061 by msurguyNo parent Inlet